Suppose I have a *sympy* expression
e1 op e2
where op is any arithmetic comparison operator, such as <, >, <=,
I want to generate a *C* code
double f(x1,x2,...xn){
if (e1<=e2) return 0 else return 1;
}
where x1,...,x2 are free variables in either e1 or e2.
How can I use *sympy.printing.ccode,* or *sympy.utlilities.codegen* to
simplify this code generation? Thanks for your idea.
--
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/2679496c-9d2b-40e9-8211-936b60310737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.