I am trying to solve an equation using the following piece of code:
f[t_] = Aa*t^4 + Bb*t^3 + Cc*t^2 + Dd;
s = Solve[f[t] == 0, t];
t1 = t /. s[[1]];
t2 = t /. s[[2]];
t3 = t /. s[[3]];
t4 = t /. s[[4]];
And it gives me four symbolic formulas.
Then, I try to give numbers to the Aa
, Bb
, Cc
, Dd
parameters:
Aa = 1.2347931365926803*10^30 ;
Bb = 4.6356322739291924*10^23 ;
Cc = 4.350806821541392*10^16 ;
Dd = -1.2562823055999998*10^6 ;
and the formulas provide the results:
-7.18016*10^-7 - 6.17065*10^-7 I
5.30307*10^-7 + 6.17065*10^-7 I
-7.18016*10^-7 + 6.17065*10^-7 I
5.30307*10^-7 - 6.17065*10^-7 I
But, if I solve using the numerical values of Aa
, Bb
, Cc
, Dd
from the beginning, I get:
-1.10255*10^-6
-9.38545*10^-8 - 9.99928*10^-7 I
-9.38545*10^-8 + 9.99928*10^-7 I
9.14844*10^-7
I have also noticed that this behavior is sensitive to the values I give to the parameters. Using these instead,
Aa = 2.8262007068794462*10^25;
Bb = -5.389762192271189*10^21;
Cc = 2.5696632603084144*10^17;
Dd = -1.2213607220736102*10^6;
the problem seems to still be there, but not as serious. Any ideas on what might be causing this and maybe a way to avoid it?