Built-in solutions
APL(Dyalog Unicode), 1 bytes SBCS
○
Left argument chooses function:
¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan
C, 1731 Bytes
#include <math#include<math.h> //
asin,
acos,
atan
C++, 1630 Bytes
#include <cmath> // std::#include<cmath>
asin, std::
acos, std::
atan
Go
1328 bytes (reals only)
import."math"
// Asin
// Acos
// Atan
1934 bytes (includes complex numbers)
import."math/cmplx"
// Asin
// Acos
// Atan
JavaScript, 29 bytes
Math.asin
Math.acos
Math.atan
Pascal, 06 bytes (only arctan)
arctan
Pascal is standardized by ISO standards 7185 (“Standard Pascal”) and 10206 (“Extended Pascal”).
Both make the trigonometric functions sin
, cos
and arctan
part of the language.
There is no need (or option) to “import” these identifiers, hence 0 bytes.
UnfortunatelyUnfortunately, there is no built-in function to inverse the operations of sin
and cos
.
See See the Pascal submission for a full implementation of the task.
Python, 1732 bytes (reals only)
from math import* #
asin,
acos,
atan
Python, 1833 bytes (supports all real valuesincludes complex numbers)
from cmath import* #asin,
asin
acos,
atan
Rust, 29 bytes
f64::asin
f64::acos
f64::atan
sclin, 14 bytes
sin_
cos_
tan_
Thunno 2, 2 bytes each
Æs # arcsin
Æc # arccos
Æt # arctan
Vyxal, 2 bytes each
∆S # Arcsine
∆C # Arccosine
∆T # Arctangent
PHP, 014 bytes
asin
, acos
and atan
are already available under these names
asin
acos
atan
Zsh, 2136 bytes
zmodload zsh/mathfunc
asin
acos
atan
Load asin
acos
atan
among other functions in arithmetic mode.