Thank you, so what to do for Python function? Matlab had general purpose 'optim(f)' if my memory is right...
On Wednesday, June 11, 2014 1:50:10 AM UTC-7, Dima Pasechnik wrote: > > On 2014-06-10, David Ingerman <[email protected] <javascript:>> wrote: > > > > How to solve([f(x)==0],x) for a function "f(x)" defined in a .sage > file? > > > > The error message: TypeError: Cannot evaluate symbolic expression to a > > numeric value. > > what is f(x) ? > solve() won't work for a Python function, it needs a symbolic > expression, e.g. > > sage: type(sin(x)) > <type 'sage.symbolic.expression.Expression'> > sage: > > > > > Thank you... > > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
