Page 1 of 1

Cos, Tan, Sin, mention to manual about Degrees and Radians.

Posted: Sat Mar 27, 2021 10:32 am
by Bugala
I just started re-educating myself in trigonometry, and I first thought that Hollywood had a bug when trying to solve some problems using Sin(), Cos(), Tan().

This was since Hollywood uses Radians instead of Degrees by default, and I didn't even realise there are two different things existing (I still don't know the difference between them yet).

Therefore I think it would be good to emphasize in manual on Sin(), Cos(), Tan() that these commands are using Radiants INSTEAD of degrees. For I did notice the Radiant in description, but I just thought it was another word for Degrees.

Also, you could mention in those places that you can convert them to Degrees by using the Deg() command. Since some beginners might not realise to check for something like that.

Re: Cos, Tan, Sin, mention to manual about Degrees and Radians.

Posted: Sat Mar 27, 2021 7:03 pm
by SamuraiCrow

Code: Select all

Function p_deg(rad#)
   Return(180*rad#/pi#)
EndFunction

Re: Cos, Tan, Sin, mention to manual about Degrees and Radians.

Posted: Sun Mar 28, 2021 12:53 pm
by Bugala
@samuraiCrow

seems I actually put wrong command. not Deg() but Rad() needs to be used, as in result = Sin(Rad(55))

But thanks for the function anyway, that made me actually understand better the difference between radius and degree.

Re: Cos, Tan, Sin, mention to manual about Degrees and Radians.

Posted: Sun Mar 28, 2021 3:15 pm
by airsoftsoftwair
Bugala wrote: Sat Mar 27, 2021 10:32 am Therefore I think it would be good to emphasize in manual on Sin(), Cos(), Tan() that these commands are using Radiants INSTEAD of degrees. For I did notice the Radiant in description, but I just thought it was another word for Degrees.

Also, you could mention in those places that you can convert them to Degrees by using the Deg() command. Since some beginners might not realise to check for something like that.
Since the documentation mentions radians already, I don't think this needs to be changed. But you're right that adding a reference to Deg() might be useful for people not too familiar with trigonometry.