Python Forum
complex algebraic function simplify
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
complex algebraic function simplify
#2
Use an expression that must be zero in solve() as the docstrings says
>>> import sympy
>>> a, C, t, E, R1, R2, i = sympy.symbols("a, C, t, E, R1, R2, i")
>>> a
a
>>> C
C
>>> z = i - E/(R1 + 1/(R2 + a * i * t / (C-i)))                                              
>>> sympy.solve(z, t)                                                                        
[(C - i)*(-E*R2 + R1*R2*i + i)/(a*i*(E - R1*i))]
Reply


Messages In This Thread
RE: complex algebraic function simplify - by Gribouillis - Mar-12-2020, 03:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Trouble with creating a looping function in python 2.7 (complex) Afterdarkreader 3 3,129 Dec-12-2017, 06:56 PM
Last Post: Afterdarkreader

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020