Z

@zrenfus

Lab Assignment 6.m

Octave
20 hours ago
clc clear disp('Zhoria Renfus') x = 1:100; f1 = exp(x); f2 = x.^3;

Lab Assignment 8.m

Octave
1 week ago
clc clear disp('Zhoria Renfus') k = 1; sum_total = 0; count = 0; while sum_total <= 10000

Function plots.m

Octave
2 weeks ago
clc clear disp('Zhoria Renfus') #x= -5:0.1:5; #f= @(x) sin(x) + cos(2*x) #y=f(x); #plot(x,y), axis([-5,5,-2.5,1.5])

Factorial Plot

Octave
2 weeks ago
clc clear disp('Zhoria Renfus') #Factorial T= 10000 n=1 factorial_n= 1

10.28.26.m

Octave
2 weeks ago
clc clear disp('Zhoria Renfus') N=100; x=linspace(-2,6,N) for k= 1:N if x(k) < -1 y(k)= exp(x(k)+1)

Q.5.m

Octave
3 weeks ago
clc clear disp('Zhoria Renfus') function [perimeter, area] = rectangle(length, width) perimeter = 2*(length + width); area = length * width;

Statement Functions (10.21.26).m

Octave
3 weeks ago
clc clear disp('Zhoria Renfus') #If Statements #x= 5 #y= 10 #if x>0

Time Intervals (10.21.26).m

Octave
3 weeks ago
clc clear disp('Zhoria Renfus') #time intervals A=30*(pi/180) #how to chang degrees into radants v0=40 g=9.81

Lab Assignment 5.m

Octave
4 weeks ago
clc clear disp('Zhoria Renfus') f= [5, 0, 0, 2, -6, 8]; g = [1, 0, 3, -5, 10]; p = conv(f,g);

Lab Assignment 4.m

Octave
4 weeks ago
clc clear disp('Zhoria Renfus') A = [7, 3, 7]; B = [-6, 2, 3]; C = [2, 8, -8]; cross_BC = cross(B, C);

10.7.5.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') #combined functions (anony. & drop) #function TC= F_to_C (TF) #TC=(5/9)*(TF-32) #endfunction

10.7.4.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') #anonymous functions V_sphere= @(r) (4/3*pi*r.^3) #element by element. (add dot when usind powers) V_cylinder= @(r,h) (pi*r.^2*h) r=1:0.5:10

10-7-3.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') function [d,v]= drop(g,v0,t) d=0.5*g*t.^2+v0*t; v=g*t+v0; endfunction [d1,v1]= drop(10,2,3)

10-7-2.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') function V=Volume_Sphere (r) V= (4/3)*pi*r^3; endfunction r=10

HW2.5.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') x=4 a = 10*x^3 - 9*x^2 - 6*x + 12; b = 5*x^3 - 4*x^2 - 12*x + 8;

HW2.1.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') A= [3 7 -4 12; -5 9 10 2; 6 13 8 11; 15 5 4 1] v=A(:,2) w=A(2,:)

Q7.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') y = x^2 - 4*x sin(x) x = linspace(-5, 5, 1000) y = x.^2 - 4*x.*sin(x)

Q5.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') A = [3 2 -4 5; 5 -6 7 -2; 8 9 3 4; 12 -5 6 7]; B = [20; -15; 73; 48]

Q 5.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') x1 = 0:0.01:4; x2 = 4:0.01:8; x3 = 8:0.01:12; y1 = 4 * (x1)

Q4.m

Octave
1 month ago
clc clear disp('Zhoria Renfus') a= 2 t= 0: 2*pi: 100 x= a* cos(2*t).^3 y= a* sin(2*t).^3