* The exact real component (`rational · √radical`) of a boxed expression that * is an exact real number literal, or `null`. Used to reconstruct exact * complex values when boxing `['Complex', re, im]`.
( op: Expression )
| 950 | |
| 951 | // If canonical, handle cases of various expression structures being able to |
| 952 | // be cast as BoxedNumbers (some cases of Negate, Rational, Divide, Complex), |
| 953 | // or 'de-number' some 'borderline invalid' boxed number-like expressions |
| 954 | // (!@note: this procedure is similarly repeated within the 'number' |
| 955 | // CanonicalForm, but the numberForm variant more simply applies to fully |
| 956 | // BoxedExprs., and during partial canonicalization only) |
| 957 | // |
| 958 | // Skipped when a user definition shadows the head (`function Divide(x, y) |
| 959 | // { … }`): the fold would answer the library operator's value, not the |
| 960 | // user's (see `shadowsLibraryName`, `library-shadowing.ts`). |
| 961 | if ( |
| 962 | canonicalNumber && |
| 963 | !( |
| 964 | (name === 'Divide' || |
| 965 | name === 'Rational' || |
| 966 | name === 'Complex' || |
| 967 | name === 'Negate') && |
| 968 | shadowsLibraryName(ce, name) |
| 969 | ) |
| 970 | ) { |
no test coverage detected