Math

Tan Block

Trigonometric tangent function: y = tan(u)

Open Tan in BlockWerk →

# Tan Block Documentation

Overview

The Tan block computes the tangent trigonometric function of the input signal.

Inputs

Outputs

Parameters

None

Mathematical Definition

y(t) = tan(u(t)) = sin(u(t)) / cos(u(t))

Behavior

Examples

Example 1: Basic Tangent

Example 2: Angle-to-Slope Conversion

Tan is useful for converting angles to slopes:

Angle (radians) → Tan → Slope (rise/run)

Common Use Cases

1. Angle-to-slope conversion: Get slope from angle 2. Inverse kinematics: Atan2 for angle from x,y coordinates 3. Signal processing: Nonlinear transformations 4. Feedback control: Tangent as a nonlinear sensor characteristic

Numerical Stability

See Also