/usr/share/freemat/toolbox/numerical/power.m is in freemat-data 4.0-5build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | % POWER POWER Overloaded Power Operator
%
% Usage
%
% This is a method that is invoked when one variable is raised
% to another variable using the dot-power operator, and is
% invoked when you call
%
% c = power(a,b)
%
% or
%
% c = a.^b
%
% POWER POWER Element-wise Power Function
%
% Usage
%
% Computes the element-wise power operator for two arrays. It is an
% M-file version of the .^ operator. The syntax for its use is
%
% y = power(a,b)
%
% where y=a.^b. See the dotpower documentation for more
% details on what this function actually does.
function y = power(a,b)
y = a.^b;
|