[sage-support] Re: Simplify code generated by sympy for complex expressions

2014-05-22 Thread stuff
Hi, excellent! Thank you very much! Joa Den onsdagen den 21:e maj 2014 kl. 17:12:51 UTC+2 skrev Dima Pasechnik: On 2014-05-21, st...@joa.me.uk javascript: st...@joa.me.ukjavascript: wrote: Hi, it is a system of resitors and capacitors. I can in principle do a bit of math and

[sage-support] Simplify code generated by sympy for complex expressions

2014-05-21 Thread stuff
Hi all, I use sage to solve a system of equations describing and electronical filter. I then use sympy and codegen to generate c code that I use in my main code written in c. This works almost like a charm, expept that it produces files that are 100s of kb long. Looking into the expressions

[sage-support] Re: Simplify code generated by sympy for complex expressions

2014-05-21 Thread stuff
Den onsdagen den 21:e maj 2014 kl. 13:28:54 UTC+2 skrev Dima Pasechnik: On 2014-05-21, st...@joa.me.uk javascript: st...@joa.me.ukjavascript: wrote: Hi all, I use sage to solve a system of equations describing and electronical filter. I then use sympy and codegen to generate c

[sage-support] Re: Simplify code generated by sympy for complex expressions

2014-05-21 Thread stuff
Hi, it is a system of resitors and capacitors. I can in principle do a bit of math and calculate Ztotal of my circuit. And calculate Itotal. From this I can get the current I want by repeated current splitting in parallel impedances. I have tried this as well. The results are the same. The