Experiment-3
Examples
Example-1
%% Experiment - 3
% Example - 1
clc;
clear all;
v = [6, -41, 97, -97, 41, -6];
s = roots(v);
fprintf('The first root is: %f\n', s(1));
fprintf('The second root is: %f\n', s(2));
fprintf('The third root is: %f\n', s(3));
fprintf('The fourth root is: %f\n', s(4));
fprintf('The fifth root is: %f\n', s(5));
syms x;
X = transpose( solve(6*x^5 - 41*x^4 + 97*x^3 - 97*x^2 + 41*x - 6 == 0) )Example-2
Example-3
Example-4
Example-5
Example-6
Exercises
Exercise-1
Exercise-2
Exercise-3
Exercise-4
Exercise-5
Last updated
Was this helpful?