Reimplemented from Ring.
Definition at line 524 of file frac.cpp.
525{
527 ring_elem top, bottom;
528 if (n >= 0)
529 {
531 bottom =
R_->power(f->
denom, n);
532
534 }
535 else
536 {
538 {
539 throw exc::division_by_zero_error();
540 }
542 bottom =
R_->power(f->
numer, -n);
543
545 }
546
548}
ring_elem set_non_unit_frac(ring_elem top) const
frac_elem * make_elem(ring_elem a, ring_elem b) const
References frac_elem::denom, FRAC_RINGELEM, FRAC_VAL, make_elem(), frac_elem::numer, R_, and set_non_unit_frac().