Comment #2 on issue 1329 by thinred: ccode: fractions use integer division  
when not intended
http://code.google.com/p/sympy/issues/detail?id=1329

I believe this fixes the issue.
I have also added support for M_PI and M_E constant in math.h.
There were also some minor issues which should be also fixed.
Additionally more tests were written to test ccode.

I will also rewrite existing code for Piecewise function.
I believe it should use ternary if in C because code generated by
ccode happens to be one-liner. Current code produces multiple if's
and code does not compile in GCC.
Is nested ternary if a good idea?

Attachments:
        0001-This-fixes-issue-1329.-Also-printing-for-math-const.patch  3.7 KB

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to