read question carefully!!!
Design test case carefully....
To avoid non-desired usages, like pi, it is necessary to not place pi in the function name. The function can be searched for forbidden function usages. There is an aspect of cat and mouse in Cody Challenges.
I agree. Disallow usage of PI for fairer scoring of your problem. Neat question!
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
y_correct = pi;
assert(isequal(gen_pi,y_correct))
|
Back to basics 11 - Max Integer
678 Solvers
401 Solvers
232 Solvers
Relative ratio of "1" in binary number
392 Solvers
Sum of odd numbers in a matrix
311 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!