greenflame said:
This is for a project of mine to make a mini mathematica. I will try to
do it but I am not sure if you all will understand the matrix math.
This link (on the Wolfram site) provides a general method for
finding the determinant of an n_x_n matrix.
<URL:
http://mathworld.wolfram.com/Determinant.html>
The "expansion by minors" technique is explained here:
<URL:
http://mathworld.wolfram.com/DeterminantExpansionbyMinors.html>
No doubt you can develop a specific solution for a 4x4 matrix and
hard-code that, or you could produce a general solution that finds the
determinant of any size square matrix. Depending on how you wish to
approach this, the solution will be very different.
You will likely get more assistance if you provide an algorithm that
you are trying to implement, that way you will get input from those
whose forte is optimisation of JavaScript regardless of whether they
understand the mathematics involved (and don't presume they don't).
I played with Mathematica some years ago - had I been able to apply all
the mathematical knowledge I have ever learned (or even stumbled
across), I doubt that I would even have scratched the surface of its
considerable capabilities.
Good luck in your quest!