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

Examination Roll No .

- 20025582122

Date of Examination - 09/12/2021

Name of Program - (582 ) B.Sc . Physical Science

Semester -3

Unique Paper Code - 42353328

Paper Title - Computer Algebra System

Question -1

Answer :

a)
2

In[1]:= f[x_] := x * Cos [1 / x];


Plot [f[x], {x, - 1, 1}]

0.6

0.4

0.2

Out[2]=
-1.0 -0.5 0.5 1.0

-0.2

-0.4

-0.6

b)

z = xy / (x^3 + y^3)
3

In[3]:= Plot3D [(x * y) / (x ^ 3 + y ^ 3), {x, - 3, 3}, {y, - 3, 3}]

Out[3]=
4

Question -2

Answer :

In[4]:= f[x_] := Cos [x];


Plot[f[x], {x, - 2 Pi, 2 Pi},
GridLines → {{- 2 Pi, - Pi, 0, Pi, 2 Pi}, {- 1, - 0.5, 0, 0.5, 1}},
Ticks → {{- 2 Pi, - Pi, 0, Pi, 2 Pi}, {- 1, - 0.5, - 0.3, 0, 0.3, 0.5, 1}}]

0.5

0.3

Out[5]=
-2 π -π π 2π

-0.3

-0.5

-1

Question - 3
f(x) = 1 + 5x + 2x ^3 + 10x ^4

a)
5

In[6]:= f[x_] := 1 + 5 x + 2 x ^ 3 + 10 x ^ 4
Plot [f[x] , {x, - 1, 1}]

15

10
Out[7]=

-1.0 -0.5 0.5 1.0

b)
In[8]:= Factor [f[x]]
Out[8]= (1 + 5 x) 1 + 2 x3
6

Question -4

In[9]:= Plot [{1 - x ^ 2, Sin [x]}, {x, - 3, 1}]


1

-3 -2 -1 1

-1

-2
Out[9]=

-3

-4

-5

In[11]:= x /. {FindRoot [1 - x ^ 2 ⩵ Sin [x], {x, - 1.4 }], FindRoot [1 - x ^ 2 ⩵ Sin [x], {x, 0.6 }]}
Out[11]= {- 1.40962, 0.636733}

Question -5

In[12]:= Simplify [(6 x - 12) / (x ^ 2 - 4)]


6
Out[12]=
2+x

In[13]:= Limit [(6 x - 12 ) / (x ^ 2 - 4), x → 2]


3
Out[13]=
2

In[14]:= Limit [(6 x - 12) / (x ^ 2 - 4 ), x → - 2]


Out[14]= Indeterminate
7

In[15]:= Plot [(6 x - 12) / (x ^ 2 - 4), {x, - 5, 5}]


15

10

Out[15]=
-4 -2 2 4

-5

-10

-15

You might also like