Recipe 7.5. Using Trigonometry Functions
You need to become familiar with Excel's support for trigonometric functions .
Explore the trigonometric functions summarized in Table 7-5.
The trigonometric functions take or return angles in radians. However, often degrees are more convenient to work with. Excel provides two functions making conversions between radians and degrees easy: RADIANS and DEGREES. Use RADIANS(angle) to convert an angle from degrees to radians. Use DEGREES(angle) to convert an angle from radians to degrees. For example, =COS(RADIANS(45)) returns the cosine of the angle 45 degrees.
Recipe 7.6. Seeing Signs
You want to capture only the sign of an expression, not its value. Or you want to take the absolute value of an expression.
Use the SIGN function in the former case and the ABS function in the latter case.
Situations often arise in scientific calculations when you're more interested in the sign of an expression than in the resulting value. For example, the formula
uses the SIGN function to compute the algebraic sign of the expression (G2-F2) and multiplies the rest of the formula by that sign (as a unit value). If (G2-F2) evaluates to a negative value, then the formula is multiplied by -1; if (G2-F2) evaluates to a positive number, then it is multiplied by +1 instead.
In this particular case, the expression (G2-F2) represents some change in value of a dimensional parameter and the direction of that change (i.e., positive or negative) is used as a scale factor to scale some other parameter from a baseline using an empirical formula. In other examples, you may be interested in whether some value is greater or less than zero, which you can determine by checking the sign of the value. The SIGN function allows you to perform such a check very easily and use the result in other computations or logical functions like the IF function.
You'll notice that in the example formula discussed a moment ago, I also used the absolute value function, ABS. The syntax for this function is =ABS(value or expression), where you can supply a value, cell reference, or some mathematical expression.