Difference between revisions of "TrapezoidalSum Command"

From GeoGebra Manual
Jump to: navigation, search
m (Fix tabulation)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude>{{Manual Page|version=4.2}}</noinclude>
+
<noinclude>{{Manual Page|version=5.0}}</noinclude>
{{command|function}}
+
{{command|function|US_version=TrapezoidalSum|non-US_version=TrapeziumSum}}
{{Alternate Language|region=US|page_type=Command |US_version=TrapezoidalSum|UK_version=TrapeziumSum|Aus_version=TrapeziumSum}}
 
  
;TrapezoidalSum[ <Function>, <Start x-Value>, <End x-Value>, <Number of Trapezoids> ]
+
;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=<code><nowiki>TrapezoidalSum(x^2, -2, 3, 5)</nowiki></code> yields ''12.5''.}}
{{Notes|1=<br>
+
:{{Notes|1=<br>
*This command draws the trapezoids of the trapezoidal sum as well.
+
:*This command draws the trapezoids of the trapezoidal sum as well.
*See also the commands: [[LowerSum Command|LowerSum]], [[LeftSum Command|LeftSum]], [[RectangleSum Command|RectangleSum]] and [[UpperSum Command|UpperSum]].}}
+
:*This command is designed as a visual aid so won't give accurate answers if the number of rectangles is too large.
 +
:*See also the commands: [[LowerSum Command|LowerSum]], [[LeftSum Command|LeftSum]], [[RectangleSum Command|RectangleSum]] and [[UpperSum Command|UpperSum]].}}

Latest revision as of 15:57, 17 November 2017



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.
  • This command is designed as a visual aid so won't give accurate answers if the number of rectangles is too large.
  • See also the commands: LowerSum, LeftSum, RectangleSum and UpperSum.
© 2024 International GeoGebra Institute