Azzera filtri
Azzera filtri

How to get solution of quadratic equation in decimal format?

1 visualizzazione (ultimi 30 giorni)
>> solve('2*x^2-4*x+5')
Solving equation gives answer in n/d format. i want anser in decimal foramt how to get it?
ans =
1 - (6^(1/2)*i)/2
1 + (6^(1/2)*i)/2

Risposta accettata

Walter Roberson
Walter Roberson il 24 Mar 2013
double(ans)

Più risposte (0)

Categorie

Scopri di più su Mathematics and Optimization in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by