student(deprecated)/middlebox - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : student(deprecated)/middlebox

student

  

middlebox

  

graph an approximation to an integral

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

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

middlebox(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 middlebox 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 centre of each interval.

• 

Four intervals are used by default.

• 

The value of the corresponding numerical approximation can be obtained by the Maple procedure middlesum.

• 

The command with(student,middlebox) 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;

middleboxx4lnx&comma;x&equals;2..4&comma;color&equals;YELLOW

middleboxsinxx&plus;sinx&comma;x&equals;0..2&pi;&comma;5&comma;shading&equals;BLUE

middleboxsinxx&plus;sinx&comma;x&equals;0..2&pi;&comma;5&comma;color&equals;GREEN

See Also

plot[options]

Student

student(deprecated)[leftbox]

student(deprecated)[leftsum]

student(deprecated)[middlesum]

student(deprecated)[rightbox]

student(deprecated)[rightsum]

student(deprecated)[simpson]

student(deprecated)[trapezoid]

Student[Calculus1][MidpointRiemannSum]

Student[Calculus1][RiemannSum]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam