Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

Chapter - 3

In[88]:= Plot[Sin[1 + Cos[x]], {x, - 10, 10}, PlotRange → {{- 10, 10}, {0, 1.5}}]
Out[88]=

1.4

1.2

1.0

0.8

0.6

0.4

0.2

-10 -5 0 5 10

In[89]:= Plot[Sec[1 + Cot[x]], {x, - 10, 10}, PlotRange → {{- 10, 10}, {0, 1.5}}]
Out[89]=

1.4

1.2

1.0

0.8

0.6

0.4

0.2

-10 -5 0 5 10
2

In[90]:= Plot[Tan[1 + Cos[x]], {x, - 10, 10}, PlotRange → {{- 10, 10}, {0, 1.5}}]
Out[90]=

1.4

1.2

1.0

0.8

0.6

0.4

0.2

-10 -5 0 5 10

In[93]:= With[{d = 10 ^ - 20}, Plot[Sqrt[x], {x, 2 - d, 2 + d}]]


199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.
199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.
199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.

General: Further output of Plot::plld will be suppressed during this calculation.

199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.
199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.
199999999999999999999 200000000000000000001
Plot: Endpoints for x in x, ,  must have distinct
100000000000000000000 100000000000000000000
machine-precision numerical values.

General: Further output of Plot::plld will be suppressed during this calculation.


Out[93]=
1 1
Plot x , x, 2 - , 2+ 
100 000 000 000 000 000 000 100 000 000 000 000 000 000

In[94]:= N[Sqrt[2], 7]
Out[94]=

1.414214
3

In[95]:= N[Sqrt[24], 9]
Out[95]=

4.89897949

In[96]:= PlotSin[x], x, - 2 Pi, 2 Pi, Ticks → - 2 Pi, - Pi, Pi, 2 Pi, Automatic,

GridLines → Range- 2 Pi, 2 Pi, Pi / 4, Range[- 1, 1, 0.2], GridLinesStyle → LightGray


Out[96]=

1.0

0.5

-2 π -π π 2π

-0.5

-1.0

In[97]:= Plot[Cos[15 * x] / (1 + x ^ 2), {x, - 3.2, 3.2}, Axes → {True, False},


AxesStyle → Axis, Frame → True, PlotRange → {- 1, 1},
AspectRatio → Filling → Axis, FrameStyle → {{Pink, White}}]
Out[97]=
1.0

0.5

0.0

-0.5

-1.0
-3 -2 -1 0 1 2 3

In[101]:=

Plot[x ^ 2, {x, - 2, 2}, Exclusions → {x ⩵ 1}, ExclusionsStyle → {Large, Red}]


Out[101]=

-2 -1 1 2
4

In[102]:=

Manipulate

PlotSin[x], x, - 2 Pi, 2 Pi, AspectRatio → t, ImageSize → {Automatic, 120}, {t, .02, .5}
Out[102]=

1.0

0.5

-6 -4 -2 2 4

-0.5

-1.0

In[103]:=

Manipulate[{x, y}, {x, 0, 1}, {y, 0, 1}]


Out[103]=

{0, 0}

In[105]:=

Manipulate[Plot, {Plot, {0, 0}, {1, 1}}]


Out[105]=

Plot

{0, 0}
5

In[106]:=

f[x_] := x / (1 + x ^ 2)
Plot[f[x], {x, - 10, 10}]
Out[107]=

0.4

0.2

-10 -5 5 10

-0.2

-0.4

In[108]:=

Plot3D[Cos[x] + Sin[y], {x, - 10, 10}, {y, - 10, 10}]


Out[108]=

You might also like