clc
clear

x = linspace(-10, 10, 1000);  % 1000 points between -10 and 10

f_x = 5*x.^5 + 2*x.^2 - 6*x + 8;
g_x = x.^4 + 3*x.^2 - 5*x;
plot(x, f_x, 'r', 'LineWidth', 2);  % Plot f(x) in red
hold on;
plot(x, g_x, 'b', 'LineWidth', 2);  % Plot g(x) in blue
xlabel('x');
ylabel('f(x) and g(x)');
title('6 lab assignment Kaliyah Johnson');

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: