HP Prime Graphing Wireless Calculator User Manual
Page 201
![background image](/manuals/397843/201/background.png)
Functions and commands
197
OR
Logical Or. Returns 1 if either or both sides evaluates to true
and 0 otherwise.
Expr1 OR Expr2
Example:
3 +1==4 OR 8 < 5 returns 1
order_size
Returns the remainder (O term) of a series expansion:
limit(x^a*order_size(x),x=0)=0 if a>0.
order_size(Expr)
pa2b2
Takes a prime integer n congruent to 1 modulo 4 and returns
[a,b] such that a^2+b^2=n.
pa2b2(Integer)
Example:
pa2b2(17)
gives
[4 1]
pade
Returns the Pade approximation of an expression, i.e. a
rational fraction P/Q such that P/Q=Expr mod x^(n+1) or
mod N with degree(P)
pade(Expr, Var, Integern, Integerp)
Example:
pade(exp(x), x, 5, 3) returns
PI
Inserts π.
PIECEWISE
Used to define a piecewise-defined function. Takes as
arguments pairs consisting of a condition and an expression.
Each of these pairs defines a sub-function of the piecewise
function and the domain over which it is active.
PIECEWISE
Example:
PIECEWISE
Note that the syntax varies if the Entry setting is not set to
Textbook:
PIECEWISE(Case1, Test1, ...[ Casen, Testn])
3
–
x
2
⋅
24 x
⋅
–
60
–
x
3
9 x
2
⋅
36 x
⋅
60
–
+
–
-------------------------------------------------------------
Case1 if Test1
Case2 if Test2
...
x
–
if x 0
<
x
2
if x 0
≥