plotting a function i

55 Views Asked by At

How can i plot bellow function in MAPLE or MATHEMATICA or MATLAB?

$$y=0.05+0.1\cdot e^{0.01x}\cdot \cos(0.2\cdot x)$$

while $x$ can be in the range of $ -350$ to $+350$ or less.

Thank you

3

There are 3 best solutions below

0
On BEST ANSWER

Mathematica

Plot[0.05 + 0.1 Exp[0.01 x] Cos[0.2 x],
 {x, -350, 350},
 PlotRange -> All,
 PlotTheme -> "Detailed"]

enter image description here

0
On

Use the following for MATLAB:

x=linspace(-350,350,100000)
y=0.05+0.1*exp(0.01*x).*cos(0.2*x)
plot(x,y)
0
On

Maple

y := 0.05 + 0.1*exp(0.01*x)*cos(0.2*x):
plot(y, x=-350 .. 350);

Or,

plot(0.05 + 0.1*exp(0.01*x)*cos(0.2*x),
     x=-350 .. 350);

And see the help page for topic plot,options for additional options and tweaks.

It's difficult to see how you could fail to figure out how to do this most basic of things -- plot a univariate expression over a given domain -- unless you have not looked at even the introductory help pages in any of those three commercial products.