Skip to content

Intermact API Reference / @intermact/core / riemannRectangles

Function: riemannRectangles()

riemannRectangles(handle, fn, opts?): IMObject2D

Defined in: packages/core/src/constructs/graphs.ts:89

Riemann-sum rectangles approximating the area under fn(x) (design.md §7.4).

Parameters

handle

AxesHandle

fn

(x) => number

opts?

RiemannOptions = {}

Returns

IMObject2D

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)