FENIX_libc/math/tan.c

5 lines
80 B
C
Raw Permalink Normal View History

2022-10-28 04:53:21 +00:00
#include <math.h>
double tan(double x) {
2022-11-17 05:26:09 +00:00
return (cos(x - M_PI_2) / cos(x));
2022-10-28 04:53:21 +00:00
}