Jump to content

[SOLVED] Problem Coverting radians to degrees using sin.


papaScott

Recommended Posts

ok, so wheres what i have.

 

$Angle = $_POST['txtAngle'];

  $SinAngle = rad2deg(sin((float)$Angle));

echo $SinAngle;

which is:

-56.610042086.

I know that the the sin() function returns a value in radians. i need that in degrees.  Shouldn't this work? I've checked my calc and it gives me 0.5 as the sine of 30.(sin(30)).

 

can someone please help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.