Dear Liu,
Thanks for your prompt reply!
I tried as you suggested, where speedx is the expression, whose numerator and denominator I want to get.
I got the error below.
If I do it without ‚sm.‘, I get the error message expr not known.
Thanks for your further help!
AttributeError Traceback (most recent call last)
Input In [7], in <module>
83 print(speedx)
84 print(speedy)
---> 85 f, g = sm.expr.as_numer_denom(speedx)
86 print(r, g)
88 q = [q1, q2, q3]
AttributeError: module 'sympy' has no attribute 'expr'
--
Best regards,
Peter Stahlecker