O(1)OOComputer ExplorationChapter 1 Section 6, Trigonometric FunctionsMaple PreliminariesFunctions are defined using an entry like the one shown below.fxd3$sin 2!$xK2f:=x/3 sin 2!xK2You will be asked to confirm that a function is being defined. Note thatMapleoutputs the functiondefinition using "arrow notation".Several plots can be generated using afor..doloop. The syntax is self-explanatory but you may want toread the Help page.?dofornin2, 4, 6do'n'=n;plotcosn$x,x= 0 ..!;enddo;unassign'n'n= 2x123K1.0K0.500.51.0n= 4x123K1.0K0.500.51.0n= 6x123K1.0K0.500.51.0*****************************The functionfx=Asin2!B$xKCCD can be defined as written with the exception of theparameter D.Maplereserves D for the derivative operator so usedinstead.Preview Mode
This document has 62 pages. Sign in to access the full document!
