0% found this document useful (0 votes)
34 views9 pages

NAME - Shailendra Kumar Verma Year - 2Nd Ee ROLL NO-1504320032 Assignment - 3

This document contains the name, roll number, and assignments of a student named Shailendra Kumar Verma pursuing 2nd year Electrical Engineering. It includes 9 math assignments involving symbolic calculations using MATLAB for limits, derivatives, integrals, differential equations and plots. The assignments cover topics like solving equations, Taylor series expansion, limits, differentiation, integration, and solving differential equations.

Uploaded by

rambabugont
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
34 views9 pages

NAME - Shailendra Kumar Verma Year - 2Nd Ee ROLL NO-1504320032 Assignment - 3

This document contains the name, roll number, and assignments of a student named Shailendra Kumar Verma pursuing 2nd year Electrical Engineering. It includes 9 math assignments involving symbolic calculations using MATLAB for limits, derivatives, integrals, differential equations and plots. The assignments cover topics like solving equations, Taylor series expansion, limits, differentiation, integration, and solving differential equations.

Uploaded by

rambabugont
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 9

NAME -Shailendra Kumar Verma

YEAR

-2nd EE

ROLL NO- 1504320032


Assignment -3
Ans -1
>> a=solve('2*x-4=1')

a=

5/2

>> y=2*x-5

y=
2*x - 5

>> ezplot('y=2*x-5',[2,4,0,1])

3.1.1.fig

Ans-2
>> syms x y z
>> s=solve(x-3*y-2*z-6,2*x-4*y-3*z-8,-3*x+6*y+8*z+5)

s=

x: [1x1 sym]
y: [1x1 sym]
z: [1x1 sym]

>> x=s.x

x=

>> y=s.y

y=

-3

>> z=s.z

z=

Ans-3
>> syms x

>> s=taylor(4/(5-cos(x)),'order',10)

s=

(241*x^8)/258048 - (113*x^6)/23040 + (5*x^4)/192 - x^2/8 + 1

>> ezplot(s)

3.3.1.fig

Ans-4
>> f=(x-2)/abs(x-2)

f=

(x - 2)/abs(x - 2)

>> a=limit(f,x,0,'left')

a=

-1

>> b=limit(f,x,0,'right')

b=

-1
>> d=limit(f,x,0)

d=

-1

since a & b are equal and at the point so limit exist

Ans-5
>> syms t
>> y=2*sin(t)-3*cos(t)

y=

2*sin(t) - 3*cos(t)

>> f=diff(y,3)-11*y

f=

31*cos(t) - 25*sin(t)

>> g=-4*cos(6*t)

g=

-4*cos(6*t)

>> isequal(f,g)

ans =

SO 'y' does not satisfy the equation.

Ans-6
>> z=dsolve('D3y-D2y-2*y-2*t','y(0)=0','D2y(0)=0')

z=

(3^(1/2)*C7*exp(t*(1/(9*((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3)) +
((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3) + 1/3))*(9*((27^(1/2)*29^(1/2))/27
+ 28/27)^(2/3) - 1)*(9*((27^(1/2)*29^(1/2))/27 + 28/27)^(2/3) 6*((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3) + 1))/(3*(2*27^(1/2)*29^(1/2) +
6*((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3) + 81*((27^(1/2)*29^(1/2))/27 +
28/27)^(4/3) + 57)) - C7*exp(-t*(1/(18*((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3)) + ((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3)/2 1/3))*sin((3^(1/2)*t*(1/(9*((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3)) ((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3)))/2) - t - (3^(1/2)*C7*exp(-t*(1/
(18*((27^(1/2)*29^(1/2))/27 + 28/27)^(1/3)) + ((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3)/2 - 1/3))*cos((3^(1/2)*t*(1/(9*((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3)) - ((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3)))/2)*(9*((27^(1/2)*29^(1/2))/27 + 28/27)^(2/3) 1)*(9*((27^(1/2)*29^(1/2))/27 + 28/27)^(2/3) - 6*((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3) + 1))/(3*(2*27^(1/2)*29^(1/2) + 6*((27^(1/2)*29^(1/2))/27 +
28/27)^(1/3) + 81*((27^(1/2)*29^(1/2))/27 + 28/27)^(4/3) + 57))

Ans-7
>> z=dsolve('Dx+2*x-8')

z=

C2*exp(-2*t) + 4

>> for i=1:1:5


ezplot(i*exp(-2*t)+4)
hold on
end
>>

3.7.1.fig

Ans-8
>> z=dsolve('D3x+x','D2p+p+x','x(0)=4','D2x(0)=0','p(0)=0')

z=

p: [1x1 sym]
x: [1x1 sym]

>> p=z.p

p=

2*cos(t) - (2*exp(-t))/3 + C14*sin(t) - (3^(1/2)*C13*exp(-t))/6 - (4*exp(t)*cos((3^(1/2)*t)/2)*exp(t)^(3/2))/3 + (3^(1/2)*C13*cos(t))/2 + C13*exp(t)*sin((3^(1/2)*t)/2)*exp(t)^(3/2) - (4*3^(1/2)*exp(t)*sin((3^(1/2)*t)/2)*exp(t)^(3/2))/3 - (3^(1/2)*C13*exp(t)*cos((3^(1/2)*t)/2)*exp(t)^(3/2))/3

>> x=z.x

x=

(4*exp(-t))/3 + (3^(1/2)*C13*exp(-t))/3 + (8*exp(t)*cos((3^(1/2)*t)/2)*exp(t)^(3/2))/3 - C13*exp(t)*sin((3^(1/2)*t)/2)*exp(t)^(3/2) - (3^(1/2)*C13*exp(t)*cos((3^(1/2)*t)/2)*exp(t)^(3/2))/3

Ans-9
>> syms x y
>> a=int((sin(y*x))^2,y)

a=

y/2 - sin(2*x*y)/(4*x)
Ans

-10

>> syms x b c
>> i=int(1/sqrt(x^2+b*x+c),x)

i=

log(b/2 + x + (x^2 + b*x + c)^(1/2))

Ans-11
>> y=exp(-x)

y=

exp(-x)

>> v=int(pi*(y)^2,x,1,2)

v=

(pi*exp(-4)*(exp(2) - 1))/2

Aptitude
1-c
2-a
3-a
4-d
5-n
6-a

7-d
8-d
9-a

You might also like