[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 > > wrote: > > Hi, > > > > it is a system of resitors and capacitors. I can in principle do a bit > of > > math and calculate Ztotal of my cir

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

2014-05-21 Thread Dima Pasechnik
On 2014-05-21, st...@joa.me.uk wrote: > 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 trie

[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 pro

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

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

[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 > > 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 code that I use in my > > m

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

2014-05-21 Thread Harald Schilly
Hi, I haven't looked into that file, but maybe you should try to solve and simplify the equations directly in sympy? There is also a group for sympy, maybe they can help you streamlining this, too. https://groups.google.com/forum/#!forum/sympy Harald -- You received this message because you ar

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

2014-05-21 Thread Dima Pasechnik
On 2014-05-21, st...@joa.me.uk 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 code that I use in my > main code written in c. This works almost like a charm, expept that it > produces files that are