RosettaCodeData/Task/Matrix-exponentiation-operator/MATLAB/matrix-exponentiation-operator-2.m

3 lines
93 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
function [output] = matrixexponentiation(matrixA, exponent)
output = matrixA.^(exponent);