1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/math/tan.c.v

18 lines
228 B
V
Raw Normal View History

module math
fn C.tan(x f64) f64
fn C.tanf(x f32) f32
// tan calculates tangent.
[inline]
pub fn tan(a f64) f64 {
return C.tan(a)
}
// tanf calculates tangent. (float32)
[inline]
pub fn tanf(a f32) f32 {
return C.tanf(a)
}