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

◆ IM2_RingElement_numerator()

const RingElement * IM2_RingElement_numerator ( const RingElement * a)

The numerator of a fraction.

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

Connected as rawNumerator.

Definition at line 902 of file ringelement.cpp.

903{
904 try
905 {
906 return a->numerator();
907 } catch (const exc::engine_error& e)
908 {
909 ERROR(e.what());
910 return nullptr;
911 }
912}
RingElement * numerator() const
Definition relem.cpp:360
const int ERROR
Definition m2-mem.cpp:55

References ERROR, and RingElement::numerator().