Closed mannebk79 closed 2 years ago
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved. If this issue is still relevant, please let us know by leaving a comment 👍 This issue has now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Feedback
Folks, thanks for the good documentation.
However, I would like to suggest, to amend it.
The way python and therefore HA is using the sin cos tan functions, is not what most folks expect, who would put an angle value into the function and would be terribly upset, as I was, by the result, as the function expects rad instead of the angular value even scientific calculators expect on default and while not switched to rad.
I dont know if this place is the right thing, but for sure its the only documentation to sin cos tan i could find through google with home assistant, tan and function as search string.
And I did not find anything related to HA and the funny results I did get when I used the function with angular values through google. Some community folks did help me out and sent me down the right rabbit hole.
You may also want to show how to code sin^-1(0,5) that should give 30 back, as I could not find a way to use the give power to function ** appropriately on this one. And I also did not find any documentation for HA for the issue.
Thanks Regards Manne
URL
https://www.home-assistant.io/docs/configuration/templating/
Version
2021.12.10
Additional information
https://community.home-assistant.io/t/my-system-gives-wrong-results-in-the-tan-function-probably-my-code-is-wrong/386390/16