Which format can be choosen

5 visualizzazioni (ultimi 30 giorni)
MINATI PATRA
MINATI PATRA il 3 Giu 2021
Commentato: MINATI PATRA il 4 Giu 2021
syms x
f = - 0.00000000000000000000000044574112852848068606808271927672*x^21 + 0.0000000000000000030044127779970749176557242324773*x^20 - 0.000000000056302615985881136490640044463735*x^19 + 0.00000000000017378935724165993341192746035199*x^18 - 0.0000000014891215183454938397421269093944*x^17 + 0.00000001363607885771973858689574596145*x^16;
%% Can it be possible to express the above expression in exponential form
(e.g 0.00000001363607885771973858689574596145 = 1.3636 * 10^(- 8) )

Risposta accettata

Steven Lord
Steven Lord il 3 Giu 2021
syms x
f = - 0.00000000000000000000000044574112852848068606808271927672*x^21 + 0.0000000000000000030044127779970749176557242324773*x^20 - 0.000000000056302615985881136490640044463735*x^19 + 0.00000000000017378935724165993341192746035199*x^18 - 0.0000000014891215183454938397421269093944*x^17 + 0.00000001363607885771973858689574596145*x^16
f = 
vpa(f, 5)
ans = 
  1 Commento
MINATI PATRA
MINATI PATRA il 4 Giu 2021
Hi Steven
Thanks for your help but it is not working for the following expression: (Some parts are not accurate)
Fv = - 4.4574e-25*x^21 + 3.0044e-21*x^20 - 5.6303e-17*x^19 + 1.7379e-13*x^18 - 1.4891e-9*x^17 + 1.3636e-8*x^16 - 2.8806e-9*x^15 - 2.0262e-7*x^14 - 7.3855e-8*x^13 - 4.8971e-7*x^12 + 0.000011088*x^11 + 0.000021129*x^10 - 0.000080694*x^9 + 0.00010399*x^8 - 0.0011636*x^7 - 0.010797*x^6 - 0.00084088*x^5 - 0.2542*x^4 + 0.1897*x^3 - 2.0757*x^2 + 0.78487*x + 0.078487;
%% And Can it be arranged in ascending order (Please help!)

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by