% Linear Algebra: Theory and Applications % Ward Cheney & David Kincaid % JBPub.com (c) 2008 % File: exp831.map % Example 8.3.1 with(LinearAlgebra): G := Matrix([0.0,0.3,0.2],[0.3,0.0,0.1],[0.2,0.1,0.0]); b := Vector(7.0;5.0;3.0); x := Vector(0.0,0.0,0.0); for k from 1 to 50 do x := G.x + b od