Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr

{Error: File: /out/package/ex6.m Line: 9 Column: 1
Function definitions in a script must appear at the end of the file.
Move all statements after the "calculation" function definition to before the
first local function definition.
} 

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

>> [Warning: Unable to create preferences folder in /.matlab/R2021a. A system error
has occurred. Using a temporary preferences folder for this MATLAB session. See
the <a href="matlab: helpview([docroot
'/matlab/helptargets.map'],'matlabenvironment_prefdir_location')">preferences
documentation</a> for more details.] 
>> 
ans =

        4097

>> 

JOJ Answer

0.7853