Cody

Problem 121. surface of a spherical planet

Solution 1683246

Submitted on 29 Nov 2018
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   Fail
x = 1; y_correct = 1/pi; assert(isequal(your_fcn_name(x),y_correct))

Error in solution Line: 2 Column: 25 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
x = pi; y_correct = pi; assert(isequal(your_fcn_name(x),y_correct))

Error in solution Line: 2 Column: 25 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
x = pi/2; y_correct = pi/4; assert(isequal(your_fcn_name(x),y_correct))

Error in solution Line: 2 Column: 25 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

Suggested Problems

More from this Author100

Community Treasure Hunt

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

Start Hunting!