Anonymous user
Matrix-exponentiation operator: Difference between revisions
m
→{{header|JavaScript}}
(add JavaScript) |
|||
Line 793:
IdentityMatrix.prototype = Matrix.prototype;
//
// returns a new matrix
Matrix.prototype.exp = function(n) {
var result = new IdentityMatrix(this.height);
|