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.
Solve the Sudoku Row
Back to basics 8 - Matrix Diagonals
Back to basics 12 - Input Arguments
Max index of 3D array
Easy Sequences 60: Almost Cube Root
Easy Sequences 49: Prime Little Omega Function
Easy Sequences 23: Hat Guessing Game!
Easy Sequences 14: Consecutive Composites
Easy Sequences 8: Triangles with integer sides and prime perimeters
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