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

Function internalBCommonDen

factory/cf_algorithm.cc:261–272  ·  view source on GitHub ↗

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 ) * **/

Source from the content-addressed store, hash-verified

259 *
260**/
261static CanonicalForm
262internalBCommonDen ( 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 *

Callers 1

bCommonDenFunction · 0.85

Calls 5

blcmFunction · 0.85
hasTermsMethod · 0.80
inBaseDomainMethod · 0.45
denMethod · 0.45
coeffMethod · 0.45

Tested by

no test coverage detected