Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Basic example of an Octave worksheet.

Views: 160
%auto %default_mode octave
rand(5)
ans = 0.357693 0.428758 0.138525 0.88839 0.862042 0.139034 0.736442 0.713911 0.0547783 0.831653 0.35765 0.218199 0.330285 0.736112 0.803798 0.11579 0.179996 0.465502 0.421087 0.896978 0.539401 0.658434 0.967081 0.088417 0.460383
A = [ 2, 0; 0, 2 ] b = [ 2; 1 ] x = A \ b
A = 2 0 0 2 b = 2 1 x = 1 0.5