Use ccode() to convert expressions to C. Aaron Meurer
On Friday, October 7, 2016, Adam Lange <[email protected]> wrote: > Hello, > > I formulated a long expression using sympy. I have to say, when I pressed > enter and the expression was printed to the console, I was super glad that > I didn't have to write it all out by hand. > > Now I need to numerically evaluate this string using another language - > either c or modelica. > > >>>lambdastr((),longExpression) > > I could almost copy and paste the output from the above command into c. > The biggest problem are the exponential terms. Is there a way to make > lambdastr express exponents in a 'c' way, with pow()? > > Thanks, > Adam > > -- > 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] > <javascript:_e(%7B%7D,'cvml','sympy%[email protected]');>. > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > Visit this group at https://groups.google.com/group/sympy. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/sympy/f9854130-9c74-4f77-afeb-156d916881d0%40googlegroups.com > <https://groups.google.com/d/msgid/sympy/f9854130-9c74-4f77-afeb-156d916881d0%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BJ6cfnxsFeh-sYZG2%3DKKhGbtm%2B2_n2-92L0ZQNuP6jRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
