MCPcopy Create free account
hub / github.com/numpy/numpy / rational_subtract

Function rational_subtract

numpy/core/src/umath/_rational_tests.c:205–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205static inline rational
206rational_subtract(rational x, rational y) {
207 /* We're safe from overflow as with + */
208 return make_rational_fast((npy_int64)x.n*d(y)-(npy_int64)d(x)*y.n,
209 (npy_int64)d(x)*d(y));
210}
211
212static inline rational
213rational_multiply(rational x, rational y) {

Callers 3

rational_remainderFunction · 0.85
npyrational_fillFunction · 0.85
pyrational_richcompareFunction · 0.85

Calls 2

make_rational_fastFunction · 0.85
dFunction · 0.85

Tested by

no test coverage detected