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

Function jjMOD_N

Singular/iparith.cc:2705–2715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2703 return FALSE;
2704}
2705static BOOLEAN jjMOD_N(leftv res, leftv u, leftv v)
2706{
2707 number q=(number)v->Data();
2708 if (nIsZero(q))
2709 {
2710 WerrorS(ii_div_by_0);
2711 return TRUE;
2712 }
2713 res->data =(char *) n_IntMod((number)u->Data(),q,currRing->cf);
2714 return FALSE;
2715}
2716static BOOLEAN jjMOD_P(leftv res, leftv u, leftv v)
2717{
2718 poly q=(poly)v->Data();

Callers

nothing calls this directly

Calls 3

WerrorSFunction · 0.85
n_IntModFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected