Problem:
When creating a Sin() calculation in a calculated field to return the Sine of a certain angle, the wrong result is achieved.
Example:
The sine of 45 degrees is 0.7071
Handbase reurns the answer as 0.8509
The sine of 90 degrees is 1.000
Handbase reurns 0.8940
Solution:
It is correct that the sine of 45 degrees is 0.70 as you mentioned. But there are two systems for computing this type of function- degrees and radians. The sine of 45 radians is 0.8509 and this is the system HanDBase uses for it's math functions. So the program is behaving as it should, but this may not be a help for you if you are wanting degrees as your base unit. The good news is that a conversion to Radians from degrees is easy:
1 radians = 57.2957795 degrees
So if you want to calculate the sin of 45 degrees, you can do this calculation:
sine(Degrees/56.2957) and get the right values for your calculation. |