HP Prime Graphing Wireless Calculator User Manual
Page 215
![background image](/manuals/397843/215/background.png)
Functions and commands
211
type
Returns the type of an expression (e.g. list, string).
type(Expr)
Example:
type("abc")
gives
DOM_STRING
unapply
Returns the function defined by an expression and a variable.
unapply(Expr,Var)
Example:
unapply(2*x^2,x)
gives
(x)→2*x^2
valuation
Returns the valuation (degree of the term of lowest degree) of
a polynomial. With only a polynomial as argument, the
valuation returned is for x. With a variable as second
argument, the valuation is performed for it.
valuation(Poly,[Var])
Example:
valuation(x^4+x^3)
gives
3
variance
Returns the variance of a list or the list of variances of the
columns of a matrix. The optional second list is a list of
weights.
variance(List1, [List2]) or variance(Matrix)
Example:
variance({3, 4, 2}) returns 2/3
vpotential
Given a vector V and a vector of variables, returns the vector
U such that curl(U)=V.
vpotential(Vector1, Vector2)
Example:
vpotential([2*x*y+3,x
2
-4*z,-2*y*z],[x,y,z])
returns
when
Used to introduce a conditional statement.
XOR
Exclusive or. Returns 1 if the first expression is true and the
second expression is false or if the first expression is false and
the second expression is true. Returns 0 otherwise.
Expr1 XOR Expr2
0 2
–
x
⋅
y z 4 x z
⋅ ⋅
1
3
---
x
3
3 y
⋅
+
⋅
–
⋅ ⋅