Integer – HP Prime Graphing Wireless Calculator User Manual
Page 133

Functions and commands
129
trigexpand
Returns a trigonometric expression in expanded form.
trigexpand(Expr)
Example:
trigexpand(sin(3*x))
gives
(4*cos(x)^2-
1)*sin(x)
trig2exp
Returns an expression with trigonometric functions rewritten as
complex exponentials (without linearization).
trig2exp(Expr)
Example:
trig2exp(sin(x))
returns
Integer
Divisors
Returns the list of divisors of an integer or a list of integers.
idivis(Integer)
or
idivis({Intgr1, Intgr2,…})
Example:
idivis(12)
returns
[1, 2, 3, 4, 6, 12]
Factors
Returns the prime factor decomposition of an integer.
ifactor(Integer)
Example:
With the CAS setting Simplify set to None, ifactor(150)
returns 2*3*5^2
Factor List
Returns a vector containing the prime factors of an integer or
a list of integers, with each factor followed by its multiplicity.
ifactors(Integer)
or
ifactors({Intgr1, Intgr2,…})
Example:
ifactors(150)
returns
[2, 1, 3, 1, 5, 2]
i
–
2
----
i x
⋅
(
)
1
i x
⋅
(
)
exp
------------------------
–
exp
⋅