Z

@zrenfus

question 3

Octave
2 years ago
clc clear if x < y if z < 10 w = x * y * z; end end

11.6.4.m

Octave
2 years ago
clc clear x1= 0:0.01:3; y1= 25*exp(0.5*x1); y2= 40*1.7.^x1; x2= logspace(-1,1,500); y3= 15*x2.^0.37; subplot(1,2,1), grid on semilogy(x1,y1,x1,y2,'--')

11.4.m

Octave
2 years ago
clc clear p=[3 2 -100 2 -7 90]; x= -6:.01:6; plot(x, polyval(p,x)) xlabel('x') ylabel('p')

Assignent 10.m

Octave
2 years ago
clc clear t= 10000 n= 1 factorial_n =1 while factorial_n <= t n = n +1 factorial_n= factorial_n * n end

HMW 3. Question 5.m

Octave
2 years ago
clc clear h = @(z) 6 * exp(z); g = @(y) 3 * cos(y); f = @(x) x.^2; composite_function = @(x) h(f(g(x))); x_range= 0:0.1:4;

8th Lab Assignment.io

Octave
2 years ago
clc clear y=@ (x)10*exp(-2*x) @(x)10*exp(-2.*x) x=0/.01/2; range 0<-x<=2 plot (x,y(x),'linewidth',2) grid on xlabel('x') ylabel('y(x)')

Problem_6.m

Octave
2 years ago
clc clear x1=0:0.01:5; f1=3*ones(size(x1)); x2=5:0.01:10; f2=0*ones(size(x2)); x3=10:0.01:15; f3=3*ones(size(x3)); f=[f1 f2 f3]; x=[x1 x2 x3]

Problem_3.m

Octave
2 years ago
x=5+8i; y=-6+7i w=x/y z=e.^x r=sqrt(y) s=x*y.^2

6th assignment.io

Octave
2 years ago
clc clear f=[ 5 0 2 -6 0 8]; g=[ 1 0 3 -5 10]; product=conv(f,g) x=linspace(-10,10,1000); y=ployval(product,x); plot(x,y) xlabel ('x') ylabel('f,g')

6th assignment.io

Octave
2 years ago
clc clear f=[ 5 0 2 -6 0 8]; g=[ 1 0 3 -5 10]; product=conv(f,g) x=linspace(-10,10,1000); y=ployval(product,x); plot(x,y) xlabel ('x') ylabel('f,g')

Assignment 4.io

Octave
2 years ago
clc clear A=[7 3 7] B=[-6 2 3] C=[2 2 8] k=cross(B,C) L=cross(A,K) G=dot(A,C) H= B* G I= dot(A,B)

Question 1.io

Octave
2 years ago
x=-5-7i y=3+4i a= x+y b=x*y c= x/y

Magnitudes.io

Octave
2 years ago
X=[2 4 7] Y= [2 -4 7] norm(X+Y) c=4 e=X * c norm(e) d=-3 f= d * Y norm(f)

Plot Population.m

Octave
2 years ago
t= 0:0.01:10; p= 5 * exp(-0.3*t) +4 *cos(2*t); plot(t, p, 'b-','LineWidth',2); title('Population of a Species over Time'); xlabel('Time (years)'); ylabel('Population (thousands)') grid on;

Chapter 1.16.m

Octave
2 years ago
a= exp((-2.1)^3)+3.47*log10(14)+287^1/4 b=3.4^7*log10(14)+287^(1/4) c=(cos(4.12*pi/6))^2 d=cos((4.12*pi/6)^2) e= 6*pi*atan(12.5)+4

Chapter 1.1.m

Octave
2 years ago
x=10; y=3; u=x+y v=x*y v=x/y