Awesome. Thank you. On Friday, October 7, 2016 at 11:33:07 AM UTC-5, Aaron Meurer wrote: > > Use ccode() to convert expressions to C. > > Aaron Meurer > > On Friday, October 7, 2016, Adam Lange <[email protected] <javascript:>> > 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]. >> 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/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/ff200875-a94d-42b4-8761-9b9921248d31%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
