Question: What am I doing wrong here?

Maple function code:

GetAngle := proc(opp, hyp)
local theta;
theta = arcsin(opp/hyp);
end proc:
                       57.29577950 theta

Matlab code:

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

> GetAngle(4,5)

ans =


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...