numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
198 stars 118 forks source link

A function to compute the inverse of a square matrix #982

Closed christianp closed 1 year ago

christianp commented 1 year ago

I was surprised that this isn't already in!

For an invertible square matrix m, inverse(m) should compute its inverse. For non-square matrices it should throw an error. Non-invertible matrices might produce NaN?