Difference between revisions of "TrapezoidalSum Command"
From GeoGebra Manual
m |
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)") |
||
Line 2: | Line 2: | ||
{{command|function|US_version=TrapezoidalSum|non-US_version=TrapeziumSum}} | {{command|function|US_version=TrapezoidalSum|non-US_version=TrapeziumSum}} | ||
− | ;TrapezoidalSum | + | ;TrapezoidalSum( <Function>, <Start x-Value>, <End x-Value>, <Number of Trapezoids> ) |
:Calculates the trapezoidal sum of the function in the interval [''Start x-Value, End x-Value''] using ''n'' trapezoids. | :Calculates the trapezoidal sum of the function in the interval [''Start x-Value, End x-Value''] using ''n'' trapezoids. | ||
:{{example|1=<div><code><nowiki>TrapezoidalSum[x^2, -2, 3, 5]</nowiki></code> yields ''12.5''.</div>}} | :{{example|1=<div><code><nowiki>TrapezoidalSum[x^2, -2, 3, 5]</nowiki></code> yields ''12.5''.</div>}} |
Revision as of 17:16, 7 October 2017
This command differs among variants of English:
|
- TrapezoidalSum( <Function>, <Start x-Value>, <End x-Value>, <Number of Trapezoids> )
- Calculates the trapezoidal sum of the function in the interval [Start x-Value, End x-Value] using n trapezoids.
- Example:
TrapezoidalSum[x^2, -2, 3, 5]
yields 12.5.
Notes:
- This command draws the trapezoids of the trapezoidal sum as well.
- See also the commands: LowerSum, LeftSum, RectangleSum and UpperSum.