Re: [sympy] Re: a "R" in front of the result

15 views
Skip to first unread message

waltermeier_44

unread,
Jul 22, 2024, 3:57:08 PM (3 days ago) Jul 22
to sy...@googlegroups.com
Dear Peter
I can provide this example:¨

>>> from sympy import *
>>> from sympy.abc import x, a, b, R, w, U, t, p
>>> print(solve(R*a/x**2 + b*w**2*R + I*(R*b*w - R*a/x) - a**2*U*exp(I*(p))))
[{R: U*a**2*x**2*exp(I*p)/(-I*a*x + a + b*w**2*x**2 + I*b*w*x**2)}]
>>>

I see forward for your answer and send best wishes.
                     Walter
--
Walter Meier
Dipl. Elektro-Ing. ETH Z�urich
Via Borenco 18
CH-6648 Minusio
Switzerland
Tf Mobile: +41(0) 79 286 08 43
E-mail: walter....@bluewin.ch
----Ursprüngliche Nachricht----
Von : peter.st...@gmail.com
Datum : 22/07/2024 - 16:45 (MS)
An : sy...@googlegroups.com
Betreff : [sympy] Re: a "R" in front of the result

Could you provide an example, where this happens?

walter....@bluewin.ch schrieb am Montag, 22. Juli 2024 um 09:26:20 UTC+2:
What means an "R" in front of a "result* , which is not really a result, because it contains still the variable x ???

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/bc664797-a5c4-469e-8f18-841958698c3en%40googlegroups.com.


Aaron Meurer

unread,
Jul 22, 2024, 4:21:30 PM (3 days ago) Jul 22
to sy...@googlegroups.com
You haven't told solve() what variable to solve for, so it decided to
solve for R. If you want to solve for x, pass it as the second
argument, like

solve(R*a/x**2 + b*w**2*R + I*(R*b*w - R*a/x) - a**2*U*exp(I*(p)), x)

Aaron Meurer
> To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/1797489883.30824.1721678220031%40bluewin.ch.
Reply all
Reply to author
Forward
0 new messages