static CanonicalForm internalBCommonDen ( const CanonicalForm & f ) * * * internalBCommonDen() - recursively calculate multivariate * common denominator of coefficients of `f'. * * Used by: bCommonDen() * * Type info: * ---------- * f: Poly( Q ) * Switches: isOff( SW_RATIONAL ) * **/
| 259 | * |
| 260 | **/ |
| 261 | static CanonicalForm |
| 262 | internalBCommonDen ( const CanonicalForm & f ) |
| 263 | { |
| 264 | if ( f.inBaseDomain() ) |
| 265 | return f.den(); |
| 266 | else { |
| 267 | CanonicalForm result = 1; |
| 268 | for ( CFIterator i = f; i.hasTerms(); i++ ) |
| 269 | result = blcm( result, internalBCommonDen( i.coeff() ) ); |
| 270 | return result; |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | /** CanonicalForm bCommonDen ( const CanonicalForm & f ) |
| 275 | * |
no test coverage detected