Documente Academic
Documente Profesional
Documente Cultură
Lecture 19
Introduction to Maple
Maple
• Maple is computer algebra software
• Great for symbolic computations
– Historically, MATLAB has been used for numerical
calculations and MAPLE for symbolic, but both
now do both
• Originally developed at the University of
Waterloo (now Maplesoft)
– www.maplesoft.com
What Can Maple Do?
• 2D Plotting
• Great for 3D plotting
• Symbolic and numerical computations
• Differential and integral calculus
• Matrix manipulation
• Statistics and data management
• Algebraic geometry
• Differential geometry
• Much more, …
User controlled update
ASCII stands for American Standard Code for Information Interchange. ASCII code is the
numerical representation of a character such as 'a' or '@' or an action of some sort.
Basic Operations
• Maple uses the same basic operations as in
MATLAB (+, −, *, /)
• Also, factorial ! and exponents ^
In 1-D Math mode:
Some Basic Maple Functions
Special Characters
V1 i1 i2 i3 R5
R2 R4
F ky
Harmonic Oscillator
• For a mass moving in
the y direction with a
linear restoring force:
d2 y
F ma m 2 ky
dt
Harmonic Oscillator
• For a mass moving in
the y direction with a
linear restoring force:
2
d y
F ma m 2 ky
dt
• The solution is:
y (t ) A sin(t )
k 2
m T
Damped Harmonic Oscillator
• Friction can often be modelled with an
additional term proportional to the velocity:
2
d y dy
F ma m 2 ky c
dt dt
Driven Damped Harmonic
Oscillator
• We can drive the damped oscillator with an
external force, F(t):
2
d y dy
F ma m 2 ky c F (t )
dt dt