June 2025
Intermediate to advanced
515 pages
17h 5m
English
Systems of linear equations play a central role in the calculation of node voltages and mesh currents in electrical networks and the distribution of forces in trusses. In mathematics, partial fraction decomposition and the solving of linear differential equations with constant coefficients and higher orders also require equations to be solved.
SymPy solves a linear system of equations using the following method:
solve((g1, g2, g3, g4), x1, x2, x3, x4)
The objects g1 to gn represent the rows of a linear system of equations. The variables x1 to xn are the unknowns.
The individual lines of the equation system, such as 7*x1+5*x2-2*x3+7*x4=9 are transformed so that the row elements of the result ...
Read now
Unlock full access