Expand
expansion over algebraic extension fields
Calling Sequence
Parameters
Description
Examples
evala(Expand(a))
a
-
expression involving algebraic numbers or algebraic functions.
This function expands product and powers of rational functions with algebraic coefficients. Powers of algebraic numbers and functions are reduced and denominators are rationalized.
Algebraic functions and algebraic numbers may be represented by radicals or with the RootOf notation (see type,algnum, type,algfun, type,radnum, type,radfun).
More precisely, the output satisfies the following properties:
Positive powers, products of sums and products of positive powers are expanded. The first operand of negative powers is expanded recursively, but negative powers are not expanded. Products of negative powers are not expanded either.
Algebraic numbers and functions have been reduced modulo the minimal polynomials. See Normal for a more precise definition.
Denominators have been rationalized. In other words, RootOfs and radicals defining algebraic numbers and functions have been removed from the denominator of rational functions.
Arguments of functions have been expanded recursively. Note that, unlike expand, Expand has no effect on mathematical functions such as sin or exp.
Other objects are frozen and considered as variables, except in the cases below.
If a is a set, a list, a range, a relation, or a series, then Expand is mapped over the object.
This function can be used to normalize polynomials over algebraic number fields. If the coefficients are algebraic functions or if a is not a polynomial, Expand cannot be used to decide whether a is mathematically equal to zero. See Normal in this case.
This function does not check that the algebraic quantities are independent.
s1≔x+sqrt⁡2x−sqrt⁡2⁢x
s1≔x+2x−2⁢x
evala⁡Expand⁡s1
2⁢2x2−2+xx2−2+2x⁢x2−2
alias⁡α=RootOf⁡y2−y+x,y:
s2≔α−y2
evala⁡Expand⁡s2
−2⁢α⁢y+y2+α−x
s3≔x−RootOf⁡x2−42
s3≔x−RootOf⁡_Z2−42
evala⁡Expand⁡s3
−2⁢x⁢RootOf⁡_Z2−4+x2+4
s4≔−1x−1+xx−1−1
evala⁡Expand⁡s4
−1x−1+xx−1−1
normal⁡s4
0
s5≔sin⁡α2−α+2⁢x+y
evala⁡Expand⁡s5
sin⁡x+y
See Also
evala
expand
Normal
RootOf
Download Help Document