HP (Hewlett-Packard) NW280AAABA Calculator User Manual


 
398 Functions and commands
length Returns the length of a list, string or set of objects.
length(List) or length(String) or
length(Object1, Object2,…)
Example:
length([1,2,3]) gives 3
lgcd Returns the greatest common divisor of a set of integers or
polynomials, contained in a list, a vector, or just entered
directly as arguments.
lgcd(List) or lgcd(Vector) or lgcd(Integer1,
Integer2, …) or lgcd(Poly1, Poly2, …)
Example:
lgcd([45,75,20,15]) gives 5
lin Returns an expression with the exponentials linearized.
lin(Expr)
Example:
lin((exp(x)^3+exp(x))^2) gives
exp(6*x)+2*exp(4*x)+exp(2*x)
linear_interpolate Takes a regular sample from a polygonal line defined by a
matrix of two rows.
linear_interpolate(Matrix,Xmin,Xmax,Xstep)
Example:
linear_interpolate([[1,2,6,9],[3,4,6,7]],1,9,
1) returns
[[1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0],
[3.0,4.0,4.5,5.0,5.5,6.0,6.33333333333,6.6666
6666667,7.0]
linear_regression Given a set of points, returns a vector containing the
coefficients a and b of y=a*x+b, the linear which best fits the
set of points. The points may be the elements in two lists or the
rows of a matrix.
linear_regression(Matrix) or
linear_regression(List1, List2)
Example:
linear_regression returns [1.53…, 0.769…]
1.0 2.0
0.0 1.0
4.0 7.0




