| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.