Integer – HP Prime Graphing Calculator User Manual
Page 338

334
Functions and commands
atrig2ln
Returns an expression with inverse trigonometric functions
rewritten as logarithmic functions.
atrig2ln(Expr)
Example:
atrig2ln(atan(x))
gives
((i)*ln((i+x)/(i-x)))/2
tlin
Returns a trigonometric expression with the products and
integer powers linearized.
tlin(ExprTrig)
Example:
tlin(sin(x)^3)
gives
3*sin(x)/4+sin(3*x)/-4
tCollect
Returns a trigonometric expression linearized and with any
sine and cosine of the same angle put together.
tCollect(Expr)
Example:
tcollect(sin(x)+cos(x))
gives
sqrt(2)*cos(x-1/
4*pi)
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))
gives
(exp((i)*x)-1/
exp((i)*x))/(2*i)
Integer
Divisors
Returns the list of divisors of an integer or a list of integers.
idivis(Intg(a) or (LstIntg))
Example:
idivis(12)
returns
[1, 2, 3, 4, 6, 12]