MuPAD Pro Computing Essentials, 2nd Edition

Example 7.1 Using VCam to improve a 2D graph

Not all our graphs are accurate or impressive from the very first attempt.  In this example I show how graph can be improved using VCam

L1 := -2*PI:
L2 := +2*PI:
    
Functions := plot::Function2d(
   exp(x)*sin(n*x), x=L1..L2
) $ n=1..3:
 
TopFunction := plot::Function2d( exp(x), x=L1..L2):
BotFunction := plot::Function2d(-exp(x), x=L1..L2):
  
plot(Functions, TopFunction, BotFunction)
 

L1 := 0: L2 := PI:
Functions := plot::Function2d(
   exp(x)*sin(n*x), x=L1..L2
) $ n=1..3:

TopFunction := plot::Function2d( exp(x), x=L1..L2):
BotFunction := plot::Function2d(-exp(x), x=L1..L2):

plot(Functions, TopFunction, BotFunction)

For the rest of explanation check chapter 7 of my book.

 

© Miroslaw Majewski, Abu Dhabi,  Update  26-10-2004