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

◆ IM2_RingElement_fraction()

const RingElement * IM2_RingElement_fraction ( const Ring * R,
const RingElement * a,
const RingElement * b )

Definition at line 927 of file ringelement.cpp.

930{
931 try
932 {
933 const RingElement *f = a->fraction(R, b);
934 if (error()) return nullptr;
935 return f;
936 } catch (const exc::engine_error& e)
937 {
938 ERROR(e.what());
939 return nullptr;
940 }
941}
RingElement * fraction(const Ring *R, const RingElement *bottom) const
Definition relem.cpp:388
Front-end-visible "ring element" value: an engine ring_elem paired with the Ring* that gives it meani...
Definition relem.hpp:67
int error()
Definition error.c:48
const int ERROR
Definition m2-mem.cpp:55

References ERROR, error(), and RingElement::fraction().