We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cd335d commit c4235b7Copy full SHA for c4235b7
src/integral.jl
@@ -71,14 +71,14 @@ function _integral(
71
nodes = Iterators.product(ntuple(Returns(xs), N)...)
72
73
# Domain transformation: x [-1,1] ↦ t [0,1]
74
- t(x) = FP(1 // 2) * x + FP(1 // 2)
+ t(x) = (1 // 2) * x + (1 // 2)
75
76
function integrand((weights, nodes))
77
ts = t.(nodes)
78
prod(weights) * f(geometry(ts...)) * differential(geometry, ts, diff_method)
79
end
80
81
- return FP(1 // (2^N)) .* sum(integrand, zip(weights, nodes))
+ return (1 // (2^N)) .* sum(integrand, zip(weights, nodes))
82
83
84
# HAdaptiveCubature
0 commit comments