Next: Substitutions
Up: Algebra
Previous: Trigonometry
Now consider the following polynomial fraction:
The expression on the right
is obtained by extracting the greatest
common divider, which in this case is y - x, from both the numerator and the denominator. In Maxima this is done by calling ezgcd:
Function ezgcd returns a list. Members of this list
can be accessed
as follows:
There are three terms in the list returned by Maxima. The first term
is the greatest common divider, and the second and the third term
are the result of dividing the arguments of ezgcd by the
greatest common divider. We can verify this as follows:
We can use the elements of the list returned by ezgcd
in order to construct a simplified (or normalised)
fraction:
If you are in a hurry you can accomplish
the same simply by saying:
Maple has a function, called normal,
which normalises fractions:
But factor will work too:
And there is also a similar function in Mathematica, called Factor:
Next: Substitutions
Up: Algebra
Previous: Trigonometry
Zdzislaw Meglicki
2001-02-26