Cody

# Problem 44683. Perfect square.

Solution 3788313

Submitted on 22 Nov 2020 by Akrem Hadji
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
x = 0; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

v = 0 y = logical 1

2   Pass
x = 1; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

v = 1 y = logical 1

3   Pass
x = 7; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

v = 2.6458 y = logical 0

4   Pass
x = 343; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

v = 18.5203 y = logical 0

5   Pass
x = pi; y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

v = 1.7725 y = logical 0

6   Pass
x = exp(1); y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

v = 1.6487 y = logical 0

7   Pass
x = sqrt(-1); y_correct = 0; assert(isequal(your_fcn_name(x),y_correct))

v = 0.7071 + 0.7071i y = logical 0

8   Pass
x = 2025; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

v = 45 y = logical 1

9   Pass
x = 4761; y_correct = 1; assert(isequal(your_fcn_name(x),y_correct))

v = 69 y = logical 1

### Community Treasure Hunt

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

Start Hunting!