System of Linear Equations

From Python Wiki

Revision as of 20:35, 25 November 2011 by Tomirvine (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The script on this page requires the utility module

Python Script

The following script solves a system of equations of the form Ax=b

The key lines are

from scipy import linalg

x = linalg.solve(A, b)


A Fortran program for this problem is: SLE.F

The program is compiled via

gfortran -o SLE SLE.F -llapack

It uses the Lapack subroutine DGESV.

Return to: Main Page | Vibrationdata Python Scripts

Personal tools