FRAMES NO FRAMES

IlcTan

public IlcFloatExp IlcTan(const IlcFloatExp x)
public IlcFloat IlcTan(IlcFloat x)
Definition file: ilsolver/nlinflt.h
Include file: <ilsolver/ilosolver.h>

When its argument is a constrained floating-point expression, this function creates a constrained floating-point expression (that is, an instance of IlcFloatExp or one of its subclasses) which is equal to the tangent of its argument x expressed in radians. The effects of this function are reversible.

When its argument is an unconstrained numeric value (that is, a value of type IlcFloat), it returns the tangent of its argument expressed in radians.

If you want to manipulate constrained floating-point expressions in degrees, we strongly recommend that you call the trigonometric functions on variables expressed in radians and then convert the results to degrees (rather than declaring the constrained floating-point expressions in degrees and then converting them to radians to call the trigonometric functions).

The reason for that advice is that the method we recommend gives more accurate results in the context of the usual floating-point pitfalls.

See Also: