Close
Close window
student(deprecated)/leftbox - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : student(deprecated)/leftbox
[フレーム] [フレーム]

student

leftbox

graph an approximation of an integral

Calling Sequence

leftbox(f(x), x=a..b, <plot options>)

leftbox(f(x), x=a..b, n, 'shading'=<color>, <plot options>)

Parameters

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

Description

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.

Examples

Important: The student package has been deprecated . Use the superseding command Student[Calculus1][RiemannSum] instead.

>

withstudent&colon;

>

leftboxx4lnx&comma;x=2..4&comma;color=RED

>

leftboxsinxx+sinx&comma;x=0..2π&comma;5&comma;shading=BLUE

>

leftsumsinxx+sinx&comma;x=0..2π&comma;5

2πi=042sin2iπ5iπ5+sin2iπ55

(1)
>

value

2π6sin2π5π52sinπ5π55

(2)
>

evalf

−5.433738028

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /