I was trying to solve the weekly challenge 352 and using the formula tool to calculate the sine and cosine of certain angles for a circle. Since I was not getting a perfect circle, I double checked the values of those given degrees versus my TI-84 Plus calculator, and the results were different. Once I manually calculated those values, the circle was very round for those 16 points.
Could someone in the Alteryx Team double check those two functions and advise please?
Please note how the circle seems pretty round with the calculator values but not with the formula function from Alteryx Designer.
Figure 1: Alteryx Formula Functions
Figure 2: Manual Calculator Values
Solved! Go to Solution.
Hi @JORGE4900
I believe that the source of the problem here is that you are using deegres, but these trigonometric functions work with rad (source: https://help.alteryx.com/20223/designer/math-functions)
If you convert this 22.5 to rad (convert 22.5 degrees to rad )
You will see a perfect circle too:
Hi there @Felipe_Ribeir0
Oh; I see; I wish I knew that before.
Any change to add that the X values for the SIN COS formulas should be in rad?
Maybe add x in rad?
Yes, the information could be more explicit. But it is possible to assume that because they said that ACOS/ASIN are in rad, so SIN and COS must be too.
User | Count |
---|---|
19 | |
15 | |
15 | |
9 | |
8 |