/usr/share/freemat/toolbox/poly/polyint.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 | % POLYINT POLYINT Polynomial Coefficient Integration
%
% Usage
%
% The polyint function returns the polynomial coefficients resulting
% from integration of polynomial p. The syntax for its use is either
%
% pint = polyint(p,k)
%
% or, for a default k = 0,
%
% pint = polyint(p);
%
% where p is a vector of polynomial coefficients assumed to be in
% decreasing degree and k is the integration constant.
% Contributed by Paulo Xavier Candeias under GPL
function pint = polyint(p,k)
if nargin < 1
error('wrong use (see help polyint)');
elseif nargin < 2
k = 0;
end
pint = [(p(:).')./(length(p):-1:1),k];
|