mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
math: inf,nan,fmod for the JS backend (#11246)
This commit is contained in:
parent
70a658a265
commit
1570e613b5
10 changed files with 812 additions and 34 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue