Back to index

glibc  2.9
Defines | Functions
k_tan.c File Reference
#include <math.h>
#include "math_private.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FUNC   tan
#define float_type   double
#define __CONCATX(a, b)   __CONCAT(a,b)

Functions

float_type __CONCATX (__kernel_, FUNC)

Define Documentation

#define __CONCATX (   a,
  b 
)    __CONCAT(a,b)

Definition at line 29 of file k_tan.c.

#define float_type   double

Definition at line 26 of file k_tan.c.

#define FUNC   tan

Definition at line 23 of file k_tan.c.


Function Documentation

float_type __CONCATX ( __kernel_  ,
FUNC   
)

Definition at line 32 of file k_tan.c.

{
  float_type tan_x, tan_y;
  tan_x = __m81_u(__CONCATX(__,FUNC)) (x);
  tan_y = __m81_u(__CONCATX(__,FUNC)) (y);
  if (iy > 0)
    return (tan_x + tan_y) / (1 - tan_x * tan_y);
  else
    return (tan_x * tan_y - 1) / (tan_x + tan_y);
}