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 On Mon, Jul 22, 2024 at 1:57 PM waltermeier_44 <walter.meier...@bluewin.ch> wrote: > > 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.meier...@bluewin.ch > > ----Ursprüngliche Nachricht---- > Von : peter.stahlec...@gmail.com > Datum : 22/07/2024 - 16:45 (MS) > An : sympy@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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/bc664797-a5c4-469e-8f18-841958698c3en%40googlegroups.com. > > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sympy/1797489883.30824.1721678220031%40bluewin.ch. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/CAKgW%3D6LEi3wHYV1tznHZNahf8ajo_5TWKYDsAxfFL_-_UaAMag%40mail.gmail.com.