Skip to content

Commit 11913f3

Browse files
committed
documentation
1 parent 66ae026 commit 11913f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/integrate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def integral(f, interval, tol=1e-8):
3131
def fmean(x):
3232
fx = f(x)
3333
if isinstance(fx, gv.GVar):
34-
sum_fx[0] += f(x)
35-
return f(x).mean
34+
sum_fx[0] += fx
35+
return fx.mean
3636
else:
3737
return fx
3838
I = scipy.integrate.quad(fmean, a, b, epsrel=tol)[0]

0 commit comments

Comments
 (0)