Adept Scientific - English
The world's best software and hardware for research, science and engineering.
flag arrow
clearclear

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKdedksvnofi
Home
Products
Training
Events
 Buy Online
Downloads
Academic Discounts
Support
My Adept
International |  About Us |  Adept Scientific Blog |  Contact Us |  Press Room |  Jobs
Adept Scientific on Facebook Adept Scientific on Twitter Adept Scientific on YouBube Adept Scientific on LinkedIn


The Next Steps

• Ask us a question
• Watch Maple Video Demonstrations
• Buy Maple Now
• View Maple Pricing
• Download a Brochure
• Request an Evaluation
• Meet Our Team
• Read our RSS Feeds

Learn More

Maple Home
Maple 17 Overview
Maple 17 Professional
Maple 17 Academic
Maple 17 Student Use
What's New in Maple 17
Maple Features
Maple History
Recorded Online Seminars

MapleSim
MapleNet
Maple T.A.
BlockImporter™
Maple Toolboxes
The Möbius Project

Maple Rave Reviews
Maple Study Guides
Books about Maple
System Requirements

Latest Information

New Features: Professional
New Features: Academic
Maple Features
The Maple Reporter Online

Service & Support

Maple Primes
blogs, forums etc

Elite Maintenance Program
Application Centre
Powertools
Search the Knowledge Base
Technical Support request

List Archives >  Maple User Group List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[MUG] Illustrating Trapezoidal Rule

Search email archive for  

[MUG] Illustrating Trapezoidal Rule
Author: Gold1    Posted: 19/10/2000 21:19:30 GDT
>> From:

Dear MUGgers:

Nathan Sokalski wrote:
"As you may know, there is no command to visually display trapezoid() like
there is for leftsum, rightsum, and middlesum. I decided to write my own,
and I have been able to make it work for some functions, but not others."

I, too, have worked on this, but from a different approach, using the
Plottools library so kindly unwrapped for me by Michael Monagan at his
Maple workshop at Simon Fraser University. This works nicely for positive
functions, For instance, try the following command:

> restart:with(plots):with(plottools):
> f:=x->2+sin(x^2):
> a:=0:b:=sqrt(3*Pi):
c:=plot(f(x),x=a..b,scaling=constrained,colour=red,tickmarks
=[3,2],thickness=3,labels=[``,``]):
L:=[2,4,8,16,32]:
for n in L do
h:=(b-a)/n:
for i from 1 to n do pol[i]:=polygon([[(i-1)*h,0],[(i-1)*h,f((i-1)
*h)],[i*h,f(i*h)],[i*h,0]],colour=green):od:
pl[n]:=display(PLOT(seq(pol[i],i=1..n)),scaling=constrained,tickmarks
=[3,3]):od:
anim:=display([seq(pl[n],n=L)],insequence=true):
display({c,anim});

The list L can be edited to give whatever sequence of approximations one
wishes. This method does not work well when the curve intersects the axis,
but for curves with all positive values (or with all negative values), it
gives nice pictures and an dynamic sense of convergence.
I also have done similar animations for Simpson's Rule, for Arc Length, for
Area between curves, and for areas in Polar Coordinates. If there is
interest, I could post these as well.

Regards to all who seek to promote visual comprehension.

Alan Gold
Mathematics & Statistics
University of Windsor

[View Complete Thread]



Previous by date: [MUG] Step-by-step solving and verifying of differential equations, Chuck Baker
Next by date: [MUG] Re: log[10]( ) and prettyprinting, Robert Israel
Previous thread: [MUG] solving linear equation, Alain Goupil
Next thread: [MUG] log[10]( ) and prettyprinting,  Nathan Sokalski



Ready to buy?

Maple Professional
Add to shopping basket
£ 1,695.00
Maple - for academic use
Add to shopping basket
£ 940.00
Maple - for registered students
Add to shopping basket
£ 95.00

Featured Downloads

Maplesoft Product Catalogue
Maple Player for iPad - Datasheet
Maple 17 What's New datasheet
Maple 17 Professional Datasheet
Maple Whitepaper: Driving Innovation - How mathematical modeling and optimisation increase efficiency and productivity in vehicle design.
MapleSim Whitepaper - Technological Superiority in Multi-Domain Physical Modelling and Simulation

Latest Downloads

Maple - Global Optimization Toolbox
The Möbius Project - Create it, Share it, Grade it
Maple 17 Programming Guide
Maple 17 User Manual
Maplesoft Product Catalogue - Academic Maths

Product Reviews

"Without the Maple software, we would have to spend weeks generating the equations of motion for every experiment. Then the chances that we did it right would basically be near zero. There would always be a mistake somewhere. It is very difficult to set up a dynamic motion model by hand."
- Jean-Claude PiedBeouf, Ph.D Manager of Robotics, Canadian Space Agency

"Its very good - highly accurate and easy to use. The speed of Maple allows me to change equations and quickly reintegrate them into the application, so more possibilities can be explored to achieve the precise effect desired."
Shawn Neely, Senior R & D Director for PDI/Dreamworks

Latest News

New MapleSim release delivers advanced model development and analysis, extended toolchain connectivity and quicker results
Maple 17 offers advanced solving and application development capabilities
New release of Maple advances teaching and research
New release of Maple advances teaching and research
Maplesoft introduces The Möbius Project for creating, sharing and grading interactive maths apps
adept

Top of the Page

Popular Links: ChemDraw | ChemOffice | Data Acquisition | Data Analysis | EndNote | Maple | MapleSim | Mathcad | MathType | Quality Analyst | Reference Manager | VisSim

EU ePrivacy Directive | Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2013, Adept Scientific Ltd.
Site designed and maintained by Lyndon Ash

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055