CanonicalForm bCommonDen ( const CanonicalForm & f ) * * * bCommonDen() - calculate multivariate common denominator of * coefficients of `f'. * * The common denominator is calculated with respect to all * coefficients of `f' which are in a base domain. In other * words, common_den( `f' ) * `f' is guaranteed to have integer * coefficients only. The common denominator of zero is one. *
| 290 | * |
| 291 | **/ |
| 292 | CanonicalForm |
| 293 | bCommonDen ( const CanonicalForm & f ) |
| 294 | { |
| 295 | if ( getCharacteristic() == 0 && isOn( SW_RATIONAL ) ) |
| 296 | { |
| 297 | // otherwise `bgcd()' returns one |
| 298 | Off( SW_RATIONAL ); |
| 299 | CanonicalForm result = internalBCommonDen( f ); |
| 300 | On( SW_RATIONAL ); |
| 301 | return result; |
| 302 | } |
| 303 | else |
| 304 | return CanonicalForm( 1 ); |
| 305 | } |
| 306 | |
| 307 | /** bool fdivides ( const CanonicalForm & f, const CanonicalForm & g ) |
| 308 | * |
no test coverage detected