It is currently September 20th, 2019, 5:31 pm

Asin, Acos and Atan inadvertence in help

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

Asin, Acos and Atan inadvertence in help

balala » October 1st, 2016, 7:04 pm

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: 1937
Joined: January 29th, 2010, 1:43 am
Location: Willmar, MN

Re: Asin, Acos and Atan inadvertence in help

smurfier » October 1st, 2016, 11:26 pm

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: 8630
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Asin, Acos and Atan inadvertence in help

balala » October 2nd, 2016, 8:45 am

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: 19467
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Asin, Acos and Atan inadvertence in help

jsmorley » October 2nd, 2016, 4:43 pm

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: 8630
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Asin, Acos and Atan inadvertence in help

balala » October 2nd, 2016, 6:02 pm

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