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

Utility

The script on this page requires the utility module tompy.py


Python Script

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

linear_system.py

The key lines are

from scipy import linalg

x = linalg.solve(A, b)


Fortran

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