TUTORIAL ASSIGNMENT #3 Soumya Mamidala
Name:
NE100 20356922 (a). x=[-10,10]; y=0.3.*x.^(2.5); >> plot(x,y) Warning: Imaginary parts of complex X and/or Y arguments ignored >> grid on >> xlabel('x') >> ylabel('y(x)') >> title('plot of y(x)=0.3*x^(2.5)') (2 0 3 4 5 6 7 8 9 xy1 p
1 8 6 4 2 .l(0 x0 o 5 )t o f y ( x ) = 0 . 3 * x
(b)>>x=[-10:10]; >> y= 50.*x.^(-3); >> plot(x,y) >> grid on >> xlabel('x')
ID:
>> ylabel('y(x)') >> title('plot of y(x)=50*x^-3') -3 8 -6 1 0 2 4 xy5 p
8 6 5 4 3 2 1 l(0 x0 o t) o f y ( x ) = 5 0 * x
(c). >>t=[1:1000:10000]; >> >> >> >> >> >>
v=20.*exp(-t./25); loglog(t,v) grid on xlabel('t') ylabel('exp(-t/25)') title('plot of v(t)=e^(-t/25)')
(50-4321-p 1 te 2 1 5 0
tlx0 5 0 0
p /o t( 2 5 t )o f/ 2 v5 () t ) = e
(d)
given, m=tan(theta); Form the triangle, tan(theta)=b/a; Therefore m=b/a And the given equation is y=mx+b; y=(b/a)x+b y=b(x+a)/a b=ay/(x+a)