I haven't quite figured out what problem 8 is supposed to do. I am getting a large number of real solutions, mostly 0.0 or 0.0001. I used unique() to reduce the solution to four values. These values are all correct except that they include 0.0.
Hi William, I missed to write "0.0000" in the solution set of test #8. Sorry for that. Corrected it.
Please rate the problem. Thanks.
For problem 8 I see only three real solutions--none that give R=0.0000.
I see now--you want to round off R before testing for an imaginary part.
Check if sorted
Determine if input is a Narcissistic number
Chebyshev polynomials of the 2nd Kind
Easy Sequence 61: Wide Pythagorean Triangles
Easy Sequences 39: Perfect Squares in Pascal's Triangle
Easy Sequences 3: Prime 44-number Squares
Easy Sequences 33: Web Trapped Ant
Easy Sequences 62: Sum of Omega-3 Function
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office