Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unfortunately in general, you cannot just take the real part of the complex solutions and use that as a solution. Here is some code that finds the solutions and then returns the real number solution.

f(x)=10.28/(1+3.177*e^(-0.224*x))
ans=solve(f(x)==8.5,x)
solns=[s.rhs() for s in ans]
real_solns=[s.n() for s in solns if imag_part(s)==0]
real_solns