tan
来自cppreference.com
< cpp | numeric/math
语法:
#include <cmath> double tan( double arg );
tan() 函数返回arg的正切,arg以弧度给出。如果arg是无穷大,tan()将会返回NAN并抛出一个异常。
C++ 也提供了下列重载形式:
#include <cmath> float tan( float arg ); // same as tanf() in C99 long double tan( long double arg ); // same as tanl() in C99