mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib/math: Add a pure V backend for vlib/math (#11267)
This commit is contained in:
committed by
GitHub
parent
dd486bb0fb
commit
1cfc4198f5
17
vlib/math/erf.c.v
Normal file
17
vlib/math/erf.c.v
Normal file
@@ -0,0 +1,17 @@
|
||||
module math
|
||||
|
||||
fn C.erf(x f64) f64
|
||||
|
||||
fn C.erfc(x f64) f64
|
||||
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user