FTANA
Operation
Approximates tangent in radians over the reduced interval from minus pi/4 to pi/4.
Assembler Syntax
FTANA.{S|D}(z) Fn(s), Fn(d)
Privilege
Unprivileged
Required CPUID flags
FP
FPTRANSA
Repeat eligibility
REP eligible
Computes the \(\tan(x)\) reference in radians over finite \(x\) with \(|x| \le \pi/4\) after DAZ and writes an implementation-bounded S- or D-format approximation under the selected FPTRANSA accuracy contract.
The required FPTRANSA_ACCURACY contract is 0x0003.
Special values
-
Infinite source or source magnitude above \(\pi/4\): NV is generated and the result is the architectural default quiet NaN.
-
Zero source: the result is the source.
Exact anchors
-
\(\tan(+0) = +0\)
-
\(\tan(-0) = -0\)
Required properties
-
odd
-
monotonically increasing on the contract domain
-
result is in [-1, 1]
2.75in
Encodings
FTANA.{S|D}(z) Fn(s), Fn(d)
Format: Instruction format for FTANA.{S|D}(z) Fn(s), Fn(d)