Skip to content

Tangent function is one of the commonly used trigonometric functions in quantitative trading, used to calculate the tangent value of an angle.

Calculation Principle ​

Tangent function is calculated using the following formula:

y = tan(x)

Where:

  • x: Input angle (in radians)
  • y: Tangent value (range: -∞ to +∞)

Parameter Description ​

  • Input Parameters: One K-line data series
  • Output: Tangent value series

Usage Recommendations ​

  1. Pay attention to input value range
  2. Consider angle unit (radians)
  3. Pay attention to numerical precision
  4. Consider periodic characteristics
  5. Pay attention to result interpretation

Notes ​

  • Ensure data quality
  • Pay attention to data preprocessing
  • Consider the impact of extreme values
  • Pay attention to numerical range
  • Consider periodicity
  • Pay attention to result stability
  • Consider computational efficiency
  • Pay attention to practical application scenarios