|
|||||||||
|
Crystal Reports Tools: Improve Performance While Saving Time and Money |
|
Crystal Reports: Hot to Use Trig Functions in a FormulaWe have been using Crystal Reports since version 4, and had a need back then to use a trigonometric function in a report we were working on. All that high school mathematics was needed and has since been forgotten. Working out a sine or cosine of an angle seemed of little use at school and hasn’t been a major requirement recently. But we now have those functions in our reports, so we would like to share with you a hint to help you use them properly. We can all remember that there are 360 degrees in a circle. The major thing to remember is that the Crystal Trigonometric functions are all in radians. There are 2π radians in a circle. Yes that is that irrational number we use on all sorts circular calculations. Thankfully, Pi is also a function in Crystal Reports. So if you want to work out the sine of a value that is in degrees, use the formula
A value of 30 degrees will calculate the value as 0.50 Now if we can only remember why we wanted to use those.
See below for some trig tips.
This article is copyrighted by Crystalkeen, Mindconnection, and Chelsea Technologies Ltd. It may be freely copied and distributed as long as the original copyright is displayed and no modifications are made to this material. Extracts are permitted. The names Crystal Reports and Seagate Info are trademarks owned by Business Objects. |
Has it been a while since you've worked with trigonometry? If
so, below is some refresher information for your convenience. Enjoy!Some Trigonometry Rules
Some Trigonometry Principles sin A = a/c , cos A = b/c , tan A = a/b 1. Given a and b, find A, B, and c 2. Given a and c,
find A, B, and b 3. Given A and a, find B, b, c 4. Given A and b, find B, a, c 5. Given A an dc, find B, a, b
|