Define/Plot Function
14: Define a function f(x), and plot it
Define f(x) = 2e-x/8sin(1.2x), and plot it over [0,10]
| Mathematica:
f[x_] := 2Exp[-x/8]Sin[1.2x] |
Matlab:
syms x y |
| Maple:
xxx |
IDL:
You can define a function in IDL, but plotting always involves discrete data points, so one way or another one must calculate an array y of points. x = 0.1 * fltarr(101) |
