TAN (Tangent)
The TAN node calculates the tangent of an input angle in radians. It is commonly used in mathematical and geometric operations within a Magick spell.Inputs
a(float, default: 0): The input angle in radians.
Outputs
result(float): The tangent of the input angle.
Configuration
This node has no additional configuration options.Usage
To use the TAN node:- Connect a float value representing an angle in radians to the
ainput port. - The node will calculate the tangent of the input angle and output the result via the
resultoutput port. - Connect the
resultoutput to the desired destination node(s) in your spell.
Example
Here’s an example of how to use the TAN node in a Magick spell:Best Practices
- Ensure that the input angle is provided in radians. If your angle is in degrees, you can use the DEG2RAD node to convert it to radians before connecting it to the TAN node.
- Keep in mind that the tangent function has asymptotes at odd multiples of π/2 (90 degrees, 270 degrees, etc.). Inputs close to these values may result in very large output values.
Common Issues
- If the input angle is not in radians, the output will be incorrect. Always double-check that your input is in the correct units.
- For input angles close to the asymptotes (odd multiples of π/2), the output may be very large or may even cause floating-point errors. Be cautious when working with such angles.
