MCPcopy Create free account
hub / github.com/Singular/Singular / bCommonDen

Function bCommonDen

factory/cf_algorithm.cc:292–305  ·  view source on GitHub ↗

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. *

Source from the content-addressed store, hash-verified

290 *
291**/
292CanonicalForm
293bCommonDen ( 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 *

Callers 15

absBiFactorizeMainFunction · 0.85
modGCDZFunction · 0.85
factorizeFunction · 0.85
ezgcdFunction · 0.85
normalizeFunction · 0.85
sqrFreeZFunction · 0.85
gcdFunction · 0.85
resultantZFunction · 0.85
NormFunction · 0.85
sqrfNormFunction · 0.85
AlgExtSqrfFactorizeFunction · 0.85
resultanteFunction · 0.85

Calls 6

getCharacteristicFunction · 0.85
isOnFunction · 0.85
OffFunction · 0.85
internalBCommonDenFunction · 0.85
OnFunction · 0.85
CanonicalFormClass · 0.70

Tested by

no test coverage detected