Matrix-exponentiation operator: Difference between revisions

m
m (→‎{{header|Wren}}: Minor tidy)
 
Line 4,057:
 
The Matrix class in the above module also has a 'pow' method but, as an alternative, overloads the otherwise unused '^' operator to provide the same functionality.
<syntaxhighlight lang="ecmascriptwren">import "./matrix" for Matrix
import "./fmt" for Fmt
 
var m = Matrix.new([[0, 1], [1, 1]])
9,476

edits