If you are interested in numeric answers, use lambdify. If you are doing things symbolically, use Lambda.
Aaron Meurer On Tue, Apr 22, 2014 at 6:30 PM, Ivica Nakić <[email protected]> wrote: > Hi, > > is there a simple way to convert an expression into a function? > > For example, the solution of ODE by the function dsolve returns an > expression, and I would like to define the corresponding function so I can > write something like f(1) instead of f.subs(x,1). > > Thanks, > Ivica > > -- > You received this message because you are subscribed to the Google Groups > "sympy" 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/sympy. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/cca3d20a-07cb-4a4d-9ed4-2cb162f9b1e8%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sympy" 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/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2B9-MAQQJPY7Xji1Eh5%2BVrzZ7jpk-N2YcoOKMvWujX9WQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
