inverse matrix by irori(mathn)

require'mathn'
$><<Matrix[*$<.map{|l|l.split.map{|i|i.to_f}}].t.inv.t.map{|x|(x-x*9e-7).round}.to_a.map{|a|a*' '}*$/

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page