MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayCorrect

73Size

Leading solution size is 2.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

1 player likes this solution

Test

Code Input and Output

1

Pass

%% alfa=pi/2; bita=-1/10^20; cos_correct = 1/10^20; assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps/10)

coffee = 1.0000e-20

2

Pass

%% bita=pi/2; alfa=-1/11^20; cos_correct = 1/11^20; assert(abs(cos_for_boss(alfa,bita)-cos_correct)<eps/10)

1 Comment