0% found this document useful (0 votes)
21 views4 pages

Matlab 1

Uploaded by

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

Matlab 1

Uploaded by

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

General Solutions

5
2
Q1. 5
2 −1

Ans. 25 /( 25−1)
= 1.0323

Q 2.3∗
( ( √ 5−1 )
( √5−1 )
2
)
Ans. 3*((sqrt (5)-1)/ ((sqrt (5)-1)^2))
= 2.4271
3
Q 3. e

Ans. exp(3)
= 20.0855
3
Q 4. Find ln (e )

Ans. log(exp(3))
=3

Q 5. Find sin ( π6 )
Ans. sin(pi/6)
= 0.5000

Q7. Find log 10 ( e3 )

Ans. log10(exp(3))
= 1.3029

Q 8. Find log 10 ( 105 )

Ans. log10(10^5)
=5

Q9. Find e π √ 163

Ans. exp(pi*sqrt(163))
= 2.6254e+17

Q10. Find tan ( π2 )


Ans. tan(pi/2)
= 1.6331e+16

1
General Solutions

Q11. Find sin


2
( π6 )+¿ cos ( π6 ) ¿
2

Ans. (sin(pi/6))^2+ (cos(pi/6))^2


=1
1
Q 12. If radius of is˚ π 3 −1.Calculate its area( a=π r 2)

Ans. r = ((pi)^(1/3))-1;
a = pi*((r)^2)
a =0.6781

Q13.Given x=32 π ; Find y , where y =cosh 2 x−sinh2 x

Ans. x= 32*pi;
y = ((cosh(x))^2)- ((sinh(x))^2)
y =0

1+3 i
Q14. Find .
1−3i

Ans. (1+3i)/(1-3i)
= -0.8000 + 0.6000i
π
i.
4
Q 15. Find e

Ans. exp(i*(pi/4))
= 0.7071 + 0.7071i

π
Q16. Find e 4 i

Ans. exp((pi/4i))
= 0.7071 - 0.7071i

Q 17.Given equation of the straight line y =mx+c ;


compute y−coordinate , where c=−2∧m=0.5 ;∧x=0 , 1.5 , 3 , 4 , 5 ,7 ,9 , 10

Ans.
m = 0.5;
c = -2;
x = [0, 1.5, 3, 4, 5, 7, 9,10];
y = (m*x) + c
y= Columns 1 through 7

2.0000 -1.2500 -0.5000 0 0.5000 1.5000 2.5000

Column 8

2
General Solutions

3.0000

Q18.Create a vector ' t ' withten elements [ 1−10 ] .


2
t−1 sin t
calculate x=t sint ; y= ; z= 2
t+1 t

Ans.
t = [1:10];
x = t.*(sin(t))
x=
Columns 1 through 7

0.8415 1.8186 0.4234 -3.0272 -4.7946 -1.6765 4.5989

Columns 8 through 10

7.9149 3.7091 -5.4402

y = (t-1)./(t+1)

y=

Columns 1 through 7

0 0.3333 0.5000 0.6000 0.6667 0.7143 0.7500

Columns 8 through 10

0.7778 0.8000 0.8182

z = (sin(t.^2))./(t.^2)

z=

Columns 1 through 7

0.8415 -0.1892 0.0458 -0.0180 -0.0053 -0.0275 -0.0195

Columns 8 through 10

0.0144 -0.0078 -0.0051

Q 19.Create a column vector for θ ;


π π 3π 5π
with values θ=0 , , , ,π , . Consider radius of the r̊=2 ;
4 2 4 4
Calculae all the points lying on the x̊=rcosθ ; y=rsinθ .

Ans.
r= 2;
theta = [0,pi/4,pi/2,3*(pi/4),pi,5*(pi/4)];
x = r*cos(theta)
3
General Solutions

x=
2.0000 1.4142 0.0000 -1.4142 -2.0000 -1.4142

y = r*sin(theta)
y=
0 1.4142 2.0000 1.4142 0.0000 -1.4142

Q20.Calculate the ∑ of GP series 1+r 2+r 3+... … … … …..+r 10 . where r=0.5

Ans. r = 0.5;
x = [0:10];
y = [r.^x]

y=
Columns 1 through 8

1.0000 0.5000 0.2500 0.1250 0.0625 0.0313 0.0156 0.0078

Columns 9 through 11

0.0039 0.0020 0.0010

u = sum(y)
u=
1.9990

You might also like