Macaulay2 Engine
Loading...
Searching...
No Matches

◆ IM2_RingElement_denominator()

const RingElement * IM2_RingElement_denominator ( const RingElement * a)

The denominator of a fraction.

Parameters
aAn element of a fraction ring frac(R).
Returns
The denominator of a, as an element of the ring R.

Connected as rawDenominator.

Definition at line 914 of file ringelement.cpp.

916{
917 try
918 {
919 return a->denominator();
920 } catch (const exc::engine_error& e)
921 {
922 ERROR(e.what());
923 return nullptr;
924 }
925}
RingElement * denominator() const
Definition relem.cpp:374
const int ERROR
Definition m2-mem.cpp:55

References RingElement::denominator(), and ERROR.