Cody

Solution 1683283

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; z = 1; y1=14.2000 y2=0 [y11,y22]=calculate_eq(x,z) assert( abs(y1-y11)+abs(y2-y22)<0.001 )

y1 = 14.2000 y2 = 0

Undefined function or variable 'xz'. Error in calculate_eq (line 2) y1 =(xz)/(x/z)^2 + 14*x^2 - 0.8*z^2 Error in Test1 (line 6) [y11,y22]=calculate_eq(x,z)

2   Fail
x = 2; z = 1; y1= 55.7000 y2=4.7500 [y11,y22]=calculate_eq(x,z) assert( abs(y1-y11)+abs(y2-y22)<0.001 )

y1 = 55.7000 y2 = 4.7500

Undefined function or variable 'xz'. Error in calculate_eq (line 2) y1 =(xz)/(x/z)^2 + 14*x^2 - 0.8*z^2 Error in Test2 (line 6) [y11,y22]=calculate_eq(x,z)