SIN (math/sin/float)
The SIN node calculates the sine of an input angle in radians and outputs the result as a float value between -1 and 1.Inputs
a(float, default: 0): The input angle in radians.
Outputs
result(float): The sine of the input angle.
Configuration
This node has no additional configuration options.Usage
To use the SIN node:- Connect a float value representing an angle in radians to the
ainput port. - The node will calculate the sine of the input angle and output the result via the
resultoutput port.
Example
Here’s an example of how to use the SIN node in a spell:- The
sinNodeis a SIN node with itsainput set to1.5707963267948966(π/2 radians, or 90 degrees). - The
outputNodeis connected to theresultoutput of thesinNode.
outputNode.
Best Practices
- Ensure that the input angle is in radians. If your angle is in degrees, convert it to radians before connecting it to the SIN node.
- Keep in mind that the output of the SIN node will always be between -1 and 1, inclusive.
Common Issues
- If the input angle is not in radians, the output will not be the expected value. Double-check that your input is in radians and convert from degrees if necessary.
- No output or unexpected output may indicate that the input port is not properly connected. Verify that the
ainput port is connected to a valid float value.
