How to get solution of quadratic equation in decimal format?

조회 수: 3 (최근 30일)
Shantanu K
Shantanu K 2013년 3월 24일
>> 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

채택된 답변

Walter Roberson
Walter Roberson 2013년 3월 24일

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by