It is currently March 28th, 2024, 8:51 pm

Asin, Acos and Atan inadvertence in help

Discussions about the documentation, main Rainmeter site and forums.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Asin, Acos and Atan inadvertence in help

Post by balala »

Working with some trigonometric functions in Calc measures, I concluded that the Functions section of the help, has a small inadvertence: in the explanation of the Atan(x), Asin(x), Acos(x), Cos(x), Sin(x), Tan(x) functions is written:
Standard trigonometric functions. x is in radians.
The "Standard trigonometric functions" is right, but the "x is in radians" part is true just for the last three functions (Cos(x), Sin(x), Tan(x)). The argument of the Atan(x), Asin(x), Acos(x) functions are not angles (neither in degrees, neither in radians), but numbers. More than this, the argument of the Asin(x) and Acos(x) functions must be between -1 and 1. The result of the Atan(x), Asin(x), Acos(x) functions are indeed expressed into radians.
Eg the Asin(10) will give an error, because as I said, the argument of the Asin (and Acos) function(s) must be between -1 and 1. Asin(0.5) works well.
Please check and if I'm right, fix the help.
Thanks.
User avatar
smurfier
Moderator
Posts: 1931
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Asin, Acos and Atan inadvertence in help

Post by smurfier »

Fixed. Thanks for noticing.
GitHub | DeviantArt | Tumblr
This is the song that never ends. It just goes on and on my friends. Some people started singing it not knowing what it was, and they'll continue singing it forever just because . . .
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Asin, Acos and Atan inadvertence in help

Post by balala »

Sorry, but it's still not correct.
The "x is between -1 and 1" is correct just for Acos(x) and Asin(x). This restriction is not applying to Atan(x). Its argument don't have to be between these boundaries.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Asin, Acos and Atan inadvertence in help

Post by jsmorley »

balala wrote:Sorry, but it's still not correct.
The "x is between -1 and 1" is correct just for Acos(x) and Asin(x). This restriction is not applying to Atan(x). Its argument don't have to be between these boundaries.
I pushed another small change balala. See if it makes sense now.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Asin, Acos and Atan inadvertence in help

Post by balala »

jsmorley wrote:I pushed another small change balala. See if it makes sense now.
I think it's ok now.