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

math: inf,nan,fmod for the JS backend (#11246)

This commit is contained in:
playX
2021-08-20 01:14:49 +03:00
committed by GitHub
parent 70a658a265
commit 1570e613b5
10 changed files with 812 additions and 34 deletions

View File

@ -150,18 +150,20 @@ pub fn exp(a f64) f64 {
return C.exp(a)
}
/*
// erf computes the error function value
[inline]
pub fn erf(a f64) f64 {
return C.erf(a)
}
*/
/*
// erfc computes the complementary error function value
[inline]
pub fn erfc(a f64) f64 {
return C.erfc(a)
}
*/
// exp2 returns the base-2 exponential function of a (math.pow(2, a)).
[inline]
pub fn exp2(a f64) f64 {