In other words, you need to define this print method on the object: http://docs.sympy.org/dev/modules/printing.html#sympy.printing.lambdarepr.LambdaPrinter.printmethod .
Aaron Meurer On Sat, Jul 13, 2013 at 12:41 PM, Aaron Meurer <[email protected]> wrote: > You need to specify how to print the dynamic symbols using the > LambdaPrinter. > > Aaron Meurer > > > On Sat, Jul 13, 2013 at 8:05 AM, Jason Moore <[email protected]> wrote: > >> You can substitute dummy symbols for the expressions. But this PR should >> have made it so you don't have to: >> https://github.com/sympy/sympy/pull/1920 It has been merged into master. >> >> BTW, you already have the solution in your PR: >> https://github.com/PythonDynamics/pydy_examples/pull/11/files#L0R17 >> >> >> Jason >> moorepants.info >> +01 530-601-9791 >> >> >> On Sat, Jul 13, 2013 at 1:53 AM, TARUN GABA <[email protected]>wrote: >> >>> Hi >>> >>> I am having some trouble lambdifying the dynamicsymbols .. >>> >>> on doing .. >>> a = dynamic_symbols('a') >>> >>> f = lambdify(a,some_expr) >>> >>> I am getting an invalid syntax error .. >>> >>> lambda a(t): some_expr >>> >>> It seems that lambda is unable to process the (t) representation of the >>> dynamic symbols. Is there any hack which can help be helpful here? >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "PyDy" 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/pydy. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "PyDy" 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/pydy. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- 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. For more options, visit https://groups.google.com/groups/opt_out.
