Cody

# Problem 45406. Yoonir - 01

Solution 2185442

Submitted on 31 Mar 2020
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
assert(abs(yoonir_02(10)-112.257)<0.001)

a1 = 0 72 144 216 288 a2 = 36 108 180 252 324

Undefined function 'fit' for input arguments of type 'double'. Error in yoonir_02 (line 9) f1=fit(P1([4 2],2),P1([4 2],1),'poly1'); Error in Test1 (line 1) assert(abs(yoonir_02(10)-112.257)<0.001)

2   Fail
assert(abs(yoonir_02(3)-10.1031)<0.001)

a1 = 0 72 144 216 288 a2 = 36 108 180 252 324

Undefined function 'fit' for input arguments of type 'double'. Error in yoonir_02 (line 9) f1=fit(P1([4 2],2),P1([4 2],1),'poly1'); Error in Test2 (line 1) assert(abs(yoonir_02(3)-10.1031)<0.001)

3   Fail
assert(abs(yoonir_02(pi)-11.0793)<0.001)

a1 = 0 72 144 216 288 a2 = 36 108 180 252 324

Undefined function 'fit' for input arguments of type 'double'. Error in yoonir_02 (line 9) f1=fit(P1([4 2],2),P1([4 2],1),'poly1'); Error in Test3 (line 1) assert(abs(yoonir_02(pi)-11.0793)<0.001)

4   Fail
assert(abs(yoonir_02(pi^5)-105126.4832)<0.001)

a1 = 0 72 144 216 288 a2 = 36 108 180 252 324

Undefined function 'fit' for input arguments of type 'double'. Error in yoonir_02 (line 9) f1=fit(P1([4 2],2),P1([4 2],1),'poly1'); Error in Test4 (line 1) assert(abs(yoonir_02(pi^5)-105126.4832)<0.001)

### Community Treasure Hunt

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

Start Hunting!