Re: [sympy] fcode printer and integers > reals

2010-11-22 Thread Øyvind Jensen
fr., 19.11.2010 kl. 10.24 -0800, skrev Julien Rioux: > Hi all, > > How can I tell the fcode printer to print integers and rationals as > reals? > > For example I would like the following output: > >>> expr = sqrt(1-x**2).series(x,n=20).removeO() > >>> print fcode(expr) > 1 - x**2/2 - x**4/8

[sympy] Re: fcode printer and integers > reals

2010-11-22 Thread Chris Smith
Øyvind Jensen wrote: > fr., 19.11.2010 kl. 10.24 -0800, skrev Julien Rioux: >> Hi all, >> >> How can I tell the fcode printer to print integers and rationals as >> reals? >> > Thanks for spotting this. > > I think the code printers should by default assume floating point > division, as the gene

Re: [sympy] Elastic Multi-Layer Analysis using Sympy

2010-11-22 Thread Andre Smit
Sure, I can contribute an example. Should I start a page on the sympy wiki? I'd like to provide some background to the problem as well. Andre On Sun, Nov 21, 2010 at 10:14 PM, Ondrej Certik wrote: > On Sun, Nov 21, 2010 at 7:31 PM, Andre Smit wrote: > > Thanks for the responses! Your comments

Re: [sympy] Re: fcode printer and integers > reals

2010-11-22 Thread Ondrej Certik
On Mon, Nov 22, 2010 at 3:58 AM, Chris Smith wrote: > Øyvind Jensen wrote: >> fr., 19.11.2010 kl. 10.24 -0800, skrev Julien Rioux: >>> Hi all, >>> >>> How can I tell the fcode printer to print integers and rationals as >>> reals? >>> > >> Thanks for spotting this. >> >> I think the code printers s

Re: [sympy] Elastic Multi-Layer Analysis using Sympy

2010-11-22 Thread Ondrej Certik
On Mon, Nov 22, 2010 at 8:42 AM, Andre Smit wrote: > Sure, I can contribute an example. Should I start a page on the sympy wiki? > I'd like to provide some background to the problem as well. Ultimately, your background stuff should go into our official docs, in sphinx, there could be a section ab

Re: [sympy] Elastic Multi-Layer Analysis using Sympy

2010-11-22 Thread Andre Smit
To get up and running I created a new pageon the wiki. I'll edit this as I make more time over Thanksgiving and the Christmas break. I notice the option of using rst format - so it should be possible to easily convert to sphinx l

Re: [sympy] Elastic Multi-Layer Analysis using Sympy

2010-11-22 Thread Ondrej Certik
On Mon, Nov 22, 2010 at 8:34 PM, Andre Smit wrote: > To get up and running I created a new page on the wiki. I'll edit this as I > make more time over Thanksgiving and the Christmas break. I notice the > option of using rst format - so it should be possible to easily convert to > sphinx later. Ye