# This worksheet contains the Maple commands from Chapter 16 of # Introduction to Scientific Programming by Joseph L. Zachary. -------------------------------------------------------------------------------- # # (16.4) The "fsolve" function can be used to find complex roots by # specifying the "complex" option. The "I" that appears in the solution # stands for the square root of -1. # > fsolve(s^2 + 4*s + 4.25 = 0, s, complex); -------------------------------------------------------------------------------- # # (16.6) We plot the behavior damped harmonic oscillator described in # Chapter 16. # > plot(exp(-t/2) * (2*cos(2*t) + 1/4*sin(2*t)),\ t=0..10, labels=[`time (seconds)`, `displacement (meters)`]); -------------------------------------------------------------------------------- >