solving quadratic roots in matlab
์กฐํ ์: 3 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
the question asks: How would i write a (Script) to calculate the two roots of any quadratic equation of the form ๐๐ฅ2 + ๐๐ฅ + ๐ = 0 using the function input to enter the values of ๐, ๐ and ๐ from the keyboard. As well as using strings and the function disp to display the result in matlab?
Check the correct operation of the program yourself by running it on thefollowing examples:
5๐ฅ2 + 11๐ฅ + 5 = 0
5๐ฅ2 + 10๐ฅ + 5 = 0
5๐ฅ2 + 9๐ฅ + 5 = 0
and comparing their outputs with the solutions obtained by hand calculation. Do not use the function roots.
๋๊ธ ์: 1
๋ต๋ณ (1๊ฐ)
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Image Category Classification์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!