DEInt.setParams

Initialize an object for computing DE integration.

struct DEInt(F)
void
setParams
(
F xa
,
F xb
,
scope F delegate
(
F
)
weightFn = toDelegate(&returnConst1)
,
Flag!"isExpDecay" isExpDecay = No.isExpDecay
,
size_t trapN = 100
,
F ta = -5
,
F tb = 5
)

Parameters

xa F

starting value of original integration.

xb F

end value of original integration.

weightFn F delegate
(
F
)

weight function. The default value of this parameter is (F x) => F(1).

isExpDecay Flag!"isExpDecay"

if the integration is formed as int_a^b f(x) exp(-x) dx, this value is Yes. otherwise No.

trapN size_t

division points of trapezoidal quadrature.

ta F

starting value of integration transformed by DE-formula.

tb F

starting value of integration transformed by DE-formula.

Meta