This file is indexed.

/usr/share/freemat/toolbox/poly/polyval.m is in freemat-data 4.0-5.

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
% POLYVAL POLYVAL Evaluate Polynomial Fit at Selected Points
% 
% Usage
% 
% The polyval routine has the following syntax
% 
%   y = polyval(p,x)
% 
% where p is a vector of polynomial coefficients,
% in decreasing degree (as generated by polyfit, for example).
% If x is a matrix, the polynomial is evaluated in the matrix
% sense (in which case x must be square).

% Copyright (c) 2002-2006 Samit Basu
% Licensed under the GPL

function y = polyval(p,x)
y = p(1);
n = prod(size(p));
for i = 2:n
  y = y.*x + p(i);
end