Problem 55830. Calculo das raizes com Bhaskara
Dado três valores a, b e c. Calcule as raizes da equação ax² + bx + c = 0
* para raizes reais, deve ser arrendondado em 2 casas decimais
Bhaskara(1, 2, 3) = 'esta equação não possui raízes reais';
Bhaskara(2, 4, -6) = [-3, 1];
Bhaskara(1, -8, 16) = 4;
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers23
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15733 Solvers
-
Number of 1s in a binary string
10554 Solvers
-
Find Factrorial without using built-in function
135 Solvers
-
Sum the 'edge' values of a matrix
384 Solvers
-
Matlab Basics II - Count rows in a matrix
396 Solvers
More from this Author20
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!