student
leftbox
graph an approximation of an integral
Calling Sequence
Parameters
Description
Examples
leftbox(f(x), x=a..b, <plot options>)
leftbox(f(x), x=a..b, n, 'shading'=<color>, <plot options>)
f(x)
-
algebraic expression in x
x
variable of integration
a
left bound of integration
b
right bound of integration
n
(optional) indicates the number of rectangles to use
color
indicates the color used to shade the rectangles
plot options
(optional) additional plot options, see ?plot,options
Important: The student package has been deprecated. Use the superseding command Student[Calculus1[[RiemannSum] instead.
The function leftbox will generate a plot of rectangular boxes used to approximate a definite integral. The height of each rectangle (box) is determined by the value of the function at the left side of each interval.
Four intervals are used by default.
The formula for the corresponding numerical approximation to this integral is generated by the Maple procedure leftsum. It can be computed by using the procedure value or evalf.
The command with(student,leftbox) allows the use of the abbreviated form of this command.
Important: The student package has been deprecated. Use the superseding command Student[Calculus1][RiemannSum] instead.
with⁡student:
leftbox⁡x4⁢ln⁡x,x=2..4,color=RED
leftbox⁡sin⁡x⁢x+sin⁡x,x=0..2⁢π,5,shading=BLUE
leftsum⁡sin⁡x⁢x+sin⁡x,x=0..2⁢π,5
2⁢π⁢∑i=04⁡2⁢sin⁡2⁢i⁢π5⁢i⁢π5+sin⁡2⁢i⁢π55
value⁡
2⁢π⁢−6⁢sin⁡2⁢π5⁢π5−2⁢sin⁡π5⁢π55
evalf⁡
−5.433738028
See Also
plot[options]
Student
student(deprecated)[leftsum]
student(deprecated)[middlebox]
student(deprecated)[middlesum]
student(deprecated)[rightbox]
student(deprecated)[rightsum]
student(deprecated)[simpson]
student(deprecated)[trapezoid]
Student[Calculus1][LeftRiemannSum]
Student[Calculus1][RiemannSum]
Download Help Document