Say type of roots in quadratic equation - MATLAB Cody - MATLAB Central

Problem 44847. Say type of roots in quadratic equation

Difficulty:Rate

Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real and different, y='RealEqual' if the roots are real and equal, and y='Complex' if the roots are complex.

Solution Stats

73.58% Correct | 26.42% Incorrect
Last Solution submitted on Feb 01, 2025

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers38

Suggested Problems

More from this Author11

Community Treasure Hunt

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

Start Hunting!