radnormal
normalize an expression containing radical numbers
Calling Sequence
Parameters
Description
Examples
radnormal(f)
radnormal(f, opts)
f
-
algebraic expression
opts
(optional) sequence of one or more of the following options: rationalized, expanded
The radnormal function performs normalization of expressions containing algebraic numbers in radical notation (see type/radnum), for example, 2 and 7+5⁢213. In particular, radnormal simplifies such a number to 0 if and only if it is mathematically equal to 0.
The expression x1n is understood as the principal nth root of the object x (see log).
Note that by default, if f is an algebraic function, then the denominator of f is not always rationalized. To force rationalization of the denominator, use the option 'rationalized'.
For polynomials, radnormal attempts to preserve partial factorizations. Each factor is expanded and its coefficients are normalized. The option 'expanded' causes radnormal to expand all products.
Rational functions are expressed in the form a/b where a and b are normalized polynomials, and gcd⁡a,b=1. Again, partial factorizations are preserved and the option 'expanded' applies.
The function radnormal is mapped over sets, lists, and relations.
Note that radnormal does handle expressions involving algebraic numbers in both indexed RootOf and radical notations (see RootOf/indexed).
The function radnormal sometimes unnests radicals, but does not always find an incidence of unnesting when it exists.
After some preliminary simplifications, a basis (in indexed RootOf notation) for the field generated by the radical numbers occurring in f is constructed and the numbers are expressed in this basis (see radfield). Then, the expression is normalized by evala@Normal and the numbers are converted back to radical notation.
If infolevel[radnormal] is assigned a positive integer, then information about the execution of the program will be displayed.
a≔sqrt⁡2⁢sqrt⁡3−sqrt⁡6
a≔2⁢3−6
radnormal⁡a
0
a≔7+5⁢sqrt⁡213
a≔7+5⁢213
1+2
a≔1212+312+612
a≔12+3+6
5⁢323−2⁢323−1223+7⁢223
a≔214⁢212+28+6⁢21212
a≔214⁢2+28+6⁢2
1
a≔x2+2⁢x⁢212−212⁢x⁢612+5−2⁢212⁢312x2−2⁢x⁢312+1
a≔x2+2⁢x⁢2−2⁢x⁢6+5−2⁢2⁢3x2−2⁢x⁢3+1
x+2−3x−3−2
a≔x−612⁢x−212⁢312
a≔x−6⁢x−2⁢3
x−2⁢32
radnormal⁡a,expanded
6−2⁢2⁢3⁢x+x2
a≔1sqrt⁡x+sqrt⁡y−sqrt⁡z
a≔1x+y−z
1x+y−z
radnormal⁡a,rationalized
−2⁢x⁢z⁢y−x32+x⁢y+x⁢z+x⁢y−y32+z⁢y−z⁢x−z⁢y+z32x2−2⁢x⁢y−2⁢x⁢z+y2−2⁢y⁢z+z2
a≔RootOf⁡_Z2+_Z+1,index=1−−123
See Also
evala
log
normal
radfield
rationalize
RootOf
simplify/radical
simplify/sqrt
type/radnum
Download Help Document