Finite-difference slopes

Estimate endpoint one-sided and interior two-sided secant slopes from a coordinate table.

The example value has been entered. Check it immediately or change the value.

Input is processed in the browser. Refreshing returns a sample value.

Result

Instructions and example

sᵢ=(yᵢ₊₁−yᵢ₋₁)/(xᵢ₊₁−xᵢ₋₁)

Default tabulated slopes are 1, 2, 4 and 5 in order.

Use 2–50 points; interior values are secants through neighboring points, not exact irregular-grid derivatives.

Frequently asked questions

How are endpoint slopes estimated?

Endpoints use the adjacent chord. Interior points use the chord between their neighboring points.

Are irregular-grid slopes exact derivatives?

No. These are secant estimates, not a higher-order irregular-grid differentiation formula.

Calculation criteria and reference materials

Verification of calculation criteria: · Calculation·verification principles · Report errors