Comment #5 on issue 1487 by robert.dodier: fcode: print sympy expressions  
as Fortran code
http://code.google.com/p/sympy/issues/detail?id=1487

Hi, I was asked to comment on this by Ryan.

  * about throwing an exception when there is some unrecognized function: I  
think
that's very clumsy, and unnecessary. Just generate a function call as best  
you can.
At least it gives people the opportunity to define a function after the  
fact.

  * symbolic constants: my advice is to emit a DATA statement for them, and  
then use
them by name whereever they are referenced.

  * piecewise expressions: couldn't you just emit if-then-else-...-endif for  
that?

  * line breaks & other formatting: the fcode output should really be  
something that
you can just paste into a Fortran program. Requiring the user to do the  
formatting is
  clumsy and unnecessary.

For what it's worth, & hope this helps.

--
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 sympy-issues@googlegroups.com
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to