27/09/2019
Try this if you remember matrix eigen values
Program to find eigen value and characteristic Eq of the matrix
float cueq(double a ,double b,double c,double d,double *x1,double *x2,double *x3)
{
double e,f,g,h,i,j,k,l,m,n,p,r,s,t,u;
int w;
e=2.7182818284590;
f=((3*c/a)-(b*b/(a*a)))/3;
g=((2*b*b*b/(a*a*a))-(9*b*c/(a*a))+(27*d/a))/27;
h=(g*g/4)+(f*f*f/27);
i=sqrt(((g*g/4)-h));
j=exp(log10(i)/log10(e)/3);
k=acos((-1)*(g/(2*i)));
l=j*(-1);
m=cos(k/3);
n=sqrt(3)*sin(k/3);
p=(b/3*a)*(-1);
r=(-1)*(g/2)+sqrt(h);
s=exp(log10(r)/log10(e)/3);
t=(-1)*(g/2)-sqrt(h);
u=exp(log10(t)/log10(e)/3);
if (h>0) w=1;
if (h