Skip to content

Commit b7b273b

Browse files
committed
dot_product->sum in trapz_weights example, looking toward complex
1 parent eb3b22f commit b7b273b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stdlib_experimental_quadrature.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ program demo_trapz_weights
7171
real :: x(5) = [0., 1., 2., 3., 4.]
7272
real :: y(5) = x**2
7373
real :: w(5)
74-
w = trapz_weight(x)
75-
print *, dot_product(w, y)
74+
w = trapz_weights(x)
75+
print *, sum(w*y)
7676
! 22.0
7777
end program
7878

0 commit comments

Comments
 (0)