Skip to content

Commit c865f66

Browse files
committed
math: Add asin, acos & atan
1 parent 6e02a31 commit c865f66

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/watt/math/floating.volt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ extern(C) fn sinf(f32) f32;
2121
alias sin = sinf;
2222
//! @}
2323

24+
/*!
25+
* Calculate the arc sine function of a number.
26+
* @{
27+
*/
28+
extern(C) fn asin(f64) f64;
29+
extern(C) fn asinf(f32) f32;
30+
alias asin = asinf;
31+
//! @}
32+
2433
/*!
2534
* Calculate the cosine function of a number.
2635
* @{
@@ -30,6 +39,15 @@ extern(C) fn cosf(f32) f32;
3039
alias cos = cosf;
3140
//! @}
3241

42+
/*!
43+
* Calculate the arc cosine function of a number.
44+
* @{
45+
*/
46+
extern(C) fn acos(f64) f64;
47+
extern(C) fn acosf(f32) f32;
48+
alias acos = acosf;
49+
//! @}
50+
3351
/*!
3452
* Calculate the tangent function of a number.
3553
* @{
@@ -39,6 +57,15 @@ extern(C) fn tanf(f32) f32;
3957
alias tan = tanf;
4058
//! @}
4159

60+
/*!
61+
* Calculate the arc tangent function of a number.
62+
* @{
63+
*/
64+
extern(C) fn atan(f64) f64;
65+
extern(C) fn atanf(f32) f32;
66+
alias atan = atanf;
67+
//! @}
68+
4269
/*!
4370
* Calculate the square root of a number.
4471
* @{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy