
Example:
tcollect(sin(x)+cos(x)) returns
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.
NOTE: In some cases, ifactor may fail. In these cases, it will return the product of -1 and the opposite of
the input. The -1 indicates that factorization has failed.
ifactor(Integer)
Example:
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)
CAS menu 377
Komentarze do niniejszej Instrukcji