0

I am coding a logistic function where the function reads: Now to calculate the % chance of an event happening I have been using:

 e^x/1+e^x

now my answer changes significantly depending on if I use:

e^x/1+e^x or e^x/(1+(e^x))

which of these two is correct ?

thanks Hyflex

Ryflex
  • 5,559
  • 25
  • 79
  • 148

1 Answers1

4

Precedence question. The correct, unambiguous answer is,

(e^x)/(1+(e^x))
ChuckCottrill
  • 4,360
  • 2
  • 24
  • 42