Skip to content

Commit d11bf47

Browse files
committed
fix in the sign for a>b integral
1 parent f221aca commit d11bf47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mathics/builtin/numeric.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ def ensure_evaluation(f, x):
338338

339339

340340
m, fm, whole = _quad_simpsons_mem(f, a, fa, b, fb)
341-
return _quad_asr(f, a, fa, b, fb, tol, whole, m, fm, maxrec)
341+
if invert_interval:
342+
return -_quad_asr(f, a, fa, b, fb, tol, whole, m, fm, maxrec)
343+
else:
344+
return _quad_asr(f, a, fa, b, fb, tol, whole, m, fm, maxrec)
342345

343346
def _fubini(func, ranges, **opts):
344347
if not ranges:

0 commit comments

Comments
 (0)