SumApprox(bounds, reltol) is an optimization (see sym_optimize())
dropping the terms of a sum that are small next to the others, given
bounds on the symbols, as SymPy's SumApprox. SeriesApprox(bounds, reltol) replaces functions of one bounded symbol by their truncated
series when that is accurate enough, as SymPy's SeriesApprox.
Usage
SumApprox(bounds, reltol, cost_function = NULL, priority = 1)
SeriesApprox(
bounds,
reltol,
max_order = 4,
n_point_checks = 4,
cost_function = NULL,
priority = 1
)Arguments
- bounds
A list of pairs
list(symbol, list(lo, hi)).- reltol
The relative tolerance.
- cost_function, priority
As in
ReplaceOptim().- max_order
The largest order of the series.
- n_point_checks
The number of points (even) where the series is checked.