Matrix-exponentiation operator: Difference between revisions

m
(add JavaScript)
Line 793:
IdentityMatrix.prototype = Matrix.prototype;
 
// and the Matrix exponentiation function
// returns a new matrix
Matrix.prototype.exp = function(n) {
var result = new IdentityMatrix(this.height);
Anonymous user