Matrix-exponentiation operator: Difference between revisions

add bqn
(Added 11l)
(add bqn)
Line 393:
196418 121393
</pre>
 
=={{header|BQN}}==
 
Matrix multiplication is a known idiom taken from BQN crate. Matrix exponentiation is simply doing Matrix multiplication n times.
<lang bqn>MatMul ← +˝∘×⎉1‿∞
 
MatEx ← {𝕨 MatMul⍟(𝕩-1) 𝕨}
 
(>⟨3‿2
2‿1⟩) MatEx 1‿2‿3‿4‿10</lang><lang bqn>┌─
· ┌─ ┌─ ┌─ ┌─ ┌─
╵ 3 2 ╵ 13 8 ╵ 55 34 ╵ 233 144 ╵ 1346269 832040
2 1 8 5 34 21 144 89 832040 514229
┘ ┘ ┘ ┘ ┘
┘</lang>
 
=={{header|Burlesque}}==
236

edits