This is not a solution, and it should be deleted. And If it is possible, then more test cases should be added.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
P = pi/4;
A_correct = 0.7984235067141288;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
2 | Pass |
%%
P = 1/sqrt(11);
A_correct = 0.4964013344766580;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
3 | Pass |
%%
P = exp(-3);
A_correct = 0.1494793760894695;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
4 | Pass |
%%
P = (1/27)^(1/5);
A_correct = 0.6605992894366502;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
5 | Pass |
%%
P = sin(sqrt(2));
A_correct = 0.8634048022602919;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
6 | Pass |
%%
P = 68/137;
A_correct = 0.6471420329484348;
assert(abs(fixedsumarea(P)-A_correct)<100*eps)
|
All your base are belong to us
463 Solvers
28 Solvers
Find the "ordinary" or Euclidean distance between A and Z
137 Solvers
127 Solvers
Eliminate Outliers Using Interquartile Range
17 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!