Question 2 Psed
Question 2 Psed
m 1 of 1
% Given functions
[a1, b1, c1] = deal(3, -18, 48); % f(x) = 3x² - 18x + 48
[a2, b2, c2] = deal(-5, -10, -3); % f(x) = -5x² - 10x - 3
% Display results
disp(['For f(x) = 3x² - 18x + 48:']);
disp(['Critical point at x = ', num2str(x1)]);
disp(['Function value at critical point y = ', num2str(y1)]);
disp(['This is a ', type1]);
disp('----------------');