Re: [sympy] Re: Bode_plot of transfer functions has ferqueny indicated in Hz but should be rad/s?

2022-02-07 Thread Hanspeter Schmid
Confirmed; and it would also make sense to have rad and deg as options for the phase. I'll formulate an issue right away. oscar.gu...@gmail.com schrieb am Montag, 7. Februar 2022 um 10:11:44 UTC+1: > Yes, it is a bug, see this much simpler example: > > > from sympy.abc import s > > from

[sympy] Re: Bode_plot of transfer functions has ferqueny indicated in Hz but should be rad/s?

2022-02-05 Thread Hanspeter Schmid
Can you send example code, please? joe@verico.com.au schrieb am Samstag, 5. Februar 2022 um 07:04:10 UTC+1: > I'm a new user of the package and wanted to check transfer function > outputs between my circuit simulator and some other control simulation > package. It appears that outputs from

[sympy] Re: How to substitute a subexpression with a function?

2022-01-26 Thread Hanspeter Schmid
Regarding 1), if you write 1/3, then Python converts this into a float before it is handed over to sympy. To prevent it, you could import S (Singleton) from sympy and write S(1)/3. dexpr_dx = se.Derivative(expr, x, 1).xreplace({y*(x**2 + (-S(1)/3)*y**2) + (-S(1)/2)*x**2 + (-S(1)/2)*y**2: V(x,

[sympy] Re: Why is matrix inversion so slow?

2022-01-11 Thread Hanspeter Schmid
Hmm, the last column of your martrix is zero, so it cannot be inverted because its determiant (e.det()) is zero. So how would Mathematica be able to calculate an inverse? gerardo...@gmail.com schrieb am Dienstag, 11. Januar 2022 um 13:30:02 UTC+1: > Sure, sorry about the image, I was unaware

Re: [sympy] Introducing Equation module

2021-05-20 Thread Hanspeter Schmid
In SymPy, str() is meant to be copy-paste-d. See https://docs.sympy.org/latest/tutorial/printing.html#str Hanspi -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[sympy] Intruducing myself

2021-05-16 Thread Hanspeter Schmid
Dear SymPy community, I have started to contribute to sympy and intend to keep on contributing, so let me introduce myself according to - I have been using Python for more than 10 years. - I have an engineering PhD and am a professor for analog microelectronics. - I teach signal