HP 40gs User Manual
Page 239

Computer Algebra System (CAS)
14-57
LCM
Returns the LCM (Least Common Multiple) of two
polynomials.
Example
Typing:
LCM(X
2
+ 2·X + 1, X
2
– 1)
gives:
LEGENDRE
Returns the polynomial L
n
, a non-null solution of the
differential equation:
where n is a whole number.
Example
Typing:
LEGENDRE(4)
gives:
PARTFRAC
Returns the partial fraction decomposition of a rational
fraction.
Example
Typing:
gives, in real and direct mode:
and gives, in complex mode:
x
2
2x 1
+
+
(
) x 1
–
(
)
⋅
x
2
1
–
(
) y″
⋅
2
–
x y
′ n n 1
+
(
) y
⋅
–
⋅ ⋅
0
=
35 x
4
⋅
30
–
x
2
⋅
3
+
8
----------------------------------------------
ARTFRAC
X
5
2X
3
–
1
+
X
4
2X
3
–
2X
2
2X
–
1
+
+
------------------------------------------------------------
⎝
⎜
⎛
x 2
x 3
–
2x
2
2
+
-----------------
1
–
2x 2
–
---------------
+ +
+
x 2
1 3 i
⋅
–
4
------------------
x i
+
------------------
1
–
2
------
x 1
–
-----------
1 3 i
⋅
+
4
------------------
x i
–
------------------
+ +
+
+
hp40g+.book Page 57 Friday, December 9, 2005 1:03 AM