Cody

# Problem 43235. Calculate geostrophic current

Solution 1592072

Submitted on 26 Jul 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; eta0=0.01; R=300; f=0.01; g=9.81; x=-500:50:500; y=-500:50:500; [x y]=meshgrid(x,y); vi=(g*eta0)/f*(-2*x/R^2).*exp(-(x.^2+y.^2)/R^2); ui=-(g*eta0)/f*(-2*y/R^2).*exp(-(x.^2+y.^2)/R^2); [u,v]=your_fcn_name(x) assert(isequal(u,ui)&isequal(v,vi))

u = -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 -981 v = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Assertion failed.