Re: Mathematical functions

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi Nathan,

   The problem is that euphoria trigonometrics functions work with
radians not degrees. You have to convert from degrees to radians.

function DegToRad(atom deg)
   return   deg/180*3.1415
end function

function RadToDeg(atom rad)
    return rad/3.1415*180
end function

? sin(DegToRad(35))

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu