Difference between revisions of "UpperSum Command"
From GeoGebra Manual
Line 3: | Line 3: | ||
;UpperSum[ <Function>, <Start x-Value>, <End x-Value>, <Number of Rectangles> ] | ;UpperSum[ <Function>, <Start x-Value>, <End x-Value>, <Number of Rectangles> ] | ||
:Calculates the ''upper sum'' of the function on the interval [''Start x-Value, End x-Value''] using ''n'' rectangles. | :Calculates the ''upper sum'' of the function on the interval [''Start x-Value, End x-Value''] using ''n'' rectangles. | ||
+ | :{{example|1=<code><nowiki>UpperSum[x^2, -2, 4, 6]</nowiki></code> yields ''35''.}} | ||
:{{Notes|1=<br> | :{{Notes|1=<br> | ||
:*This command draws the rectangles of the upper sum as well.<br> | :*This command draws the rectangles of the upper sum as well.<br> | ||
:*See also the commands: [[LowerSum Command|LowerSum]], [[LeftSum Command|LeftSum]], [[RectangleSum Command|RectangleSum]], and [[TrapezoidalSum Command|TrapezoidalSum]] }} | :*See also the commands: [[LowerSum Command|LowerSum]], [[LeftSum Command|LeftSum]], [[RectangleSum Command|RectangleSum]], and [[TrapezoidalSum Command|TrapezoidalSum]] }} |
Revision as of 09:23, 12 April 2013
- UpperSum[ <Function>, <Start x-Value>, <End x-Value>, <Number of Rectangles> ]
- Calculates the upper sum of the function on the interval [Start x-Value, End x-Value] using n rectangles.
- Example:
UpperSum[x^2, -2, 4, 6]
yields 35.
- Notes:
- This command draws the rectangles of the upper sum as well.
- See also the commands: LowerSum, LeftSum, RectangleSum, and TrapezoidalSum
- This command draws the rectangles of the upper sum as well.