Question: What am I doing wrong here?

Maple function code:

GetAngle := proc(opp, hyp)
local theta;
theta = arcsin(opp/hyp);
evalf(180/Pi*theta);
end proc:
GetAngle(4,5)
                       57.29577950 theta

Matlab code:

function [outputArg1,outputArg2] = GetAngle(opp,hyp)
    theta = asin(opp/hyp);
    outputArg1 = 180/pi*theta;
end

> GetAngle(4,5)

ans =

   53.1301

Ditto same code from Maple programming guide 2017:

 

Why is there a difference in the answer, am I coding it wrong? I mean any syntax errors that I am not following?

Please Wait...