2016-08-22 13:29:09 +0200 | received badge | ● Taxonomist |
2012-10-16 01:46:14 +0200 | received badge | ● Famous Question (source) |
2011-11-18 19:56:06 +0200 | received badge | ● Notable Question (source) |
2011-06-14 11:15:08 +0200 | received badge | ● Popular Question (source) |
2011-06-03 09:01:25 +0200 | received badge | ● Good Question (source) |
2011-06-03 00:19:20 +0200 | received badge | ● Nice Question (source) |
2011-02-07 15:01:56 +0200 | commented answer | Export to C code I somehow don't get to grips with Cython. Could you point me to a minimal example of using it from within a Sage notebook? I tried something like %cython x=0; x^2; , but it doesn't convert x^2 to pow(x,2). |
2011-02-07 11:08:00 +0200 | commented answer | Export to C code Is there a way to do this from a Sage notebook? To make myself more clear: I want to feed the result of a (symbolic) Taylor expansion from a Sage notebook into a C program, which I have already written. |
2011-02-07 08:45:42 +0200 | received badge | ● Student (source) |
2011-02-07 08:27:07 +0200 | received badge | ● Supporter (source) |
2011-02-07 08:26:21 +0200 | asked a question | Export to C code Is it possible to export the result of a calculation to C source code? To be more specific, I have a very long equation emerging from a Sage calculation which I need to feed into a C simulation program, but C doesn't understand the x^2, x^3, ... syntax. I ended up using the re module to manually replace the terms with the proper pow function calls, but I thought maybe there is a more elegant solution to this. |