Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

For the second-degree polynomial equation ( ax^2+bx+c). Calculate the roots ( x1 , x2) five times using WHILE true loop, given that ( a,b,c)are constants & x1,x2 =( -b -+ sqrt(b^2-4ac))/ 2a

조회 수: 3 (최근 30일)
For the second-degree polynomial equation ( ax^2+bx+c). Calculate the roots ( x1 , x2) five times using D WHILE true loop, given that ( a,b,c)are constants & x1,x2 =( -b -+ sqrt(b^2-4ac))/ 2a
While writing the Program please consider the Following: 1- The program must ask the user to input the three constants (a, b, c ).
2- The program must display the value of each root individually.
  댓글 수: 3
Walter Roberson
Walter Roberson 2020년 9월 19일
One of the points that I emphasized on that other question was that MATLAB does not have a "do while" loop. MATLAB is unlikely to ever have a "do while" loop.
Image Analyst
Image Analyst 2020년 9월 19일
I'm sure your instructor is not expecting you to turn someone else's work in as your own, so please read this link.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by