Skip to main content
fix byte scoring (https://codegolf.meta.stackexchange.com/a/8288)
Source Link

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

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

Attempt This Online!

1934 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

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

Attempt This Online!

Python, 1833 bytes (supports all real valuesincludes complex numbers)

from cmath import* #asin,
asin
acos, 
atan

Attempt This Online!

Rust, 29 bytes

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 014 bytes

asin, acos and atan are already available under these names

asin
acos
atan

Try it online!

Zsh, 2136 bytes

  
zmodload zsh/mathfunc
asin
acos
atan

Try it online!

Load asin acos atan among other functions in arithmetic mode.

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

Zsh, 21 bytes

 
zmodload zsh/mathfunc

Try it online!

Load asin acos atan among other functions in arithmetic mode.

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 31 Bytes

#include<math.h> 
asin 
acos 
atan

C++, 30 Bytes

#include<cmath>
asin 
acos 
atan

Go

28 bytes (reals only)

import."math"
Asin
Acos
Atan

Attempt This Online!

34 bytes (includes complex numbers)

import."math/cmplx"
Asin
Acos
Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 6 bytes (only arctan)

arctan

Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 32 bytes (reals only)

from math import* 
asin 
acos 
atan

Attempt This Online!

Python, 33 bytes (includes complex numbers)

from cmath import*
asin
acos 
atan

Attempt This Online!

Rust, 29 bytes

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 14 bytes

asin
acos
atan

Try it online!

Zsh, 36 bytes

 
zmodload zsh/mathfunc
asin
acos
atan

Try it online!

added 336 characters in body
Source Link
GammaFunction
  • 6.9k
  • 13
  • 23

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

Zsh, 21 bytes

zmodload zsh/mathfunc

Try it online!

Load asin acos atan among other functions in arithmetic mode.

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

Zsh, 21 bytes

zmodload zsh/mathfunc

Try it online!

Load asin acos atan among other functions in arithmetic mode.

added 579 characters in body
Source Link
Kaddath
  • 2.9k
  • 5
  • 9

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

Built-in solutions

APL(Dyalog Unicode), 1 bytes SBCS

Try it on APLgolf!

Left argument chooses function:

¯1○⍵ ⍝ asin
¯2○⍵ ⍝ acos
¯3○⍵ ⍝ atan

C, 17 Bytes

#include <math.h> // asin, acos, atan

C++, 16 Bytes

#include <cmath> // std::asin, std::acos, std::atan

Go

13 bytes (reals only)

import."math"
// Asin
// Acos
// Atan

Attempt This Online!

19 bytes (includes complex numbers)

import."math/cmplx"
// Asin
// Acos
// Atan

Attempt This Online!

JavaScript, 29 bytes

Math.asin
Math.acos
Math.atan

Attempt This Online!

Pascal, 0 bytes

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. Unfortunately, there is no built-in function to inverse the operations of sin and cos. See the Pascal submission for a full implementation of the task.

Python, 17 bytes

from math import* # asin, acos,atan

Attempt This Online!

Python, 18 bytes (supports all real values)

from cmath import* #asin,acos,atan

Attempt This Online!

Rust

f64::asin
f64::acos
f64::atan

sclin, 14 bytes

sin_
cos_
tan_

Try it on scline!

Thunno 2, 2 bytes each

Æs # arcsin
Æc # arccos
Æt # arctan

Try it online!

Vyxal, 2 bytes each

∆S # Arcsine
∆C # Arccosine
∆T # Arctangent

Try it Online!

PHP, 0 bytes

asin, acos and atan are already available under these names

Try it online!

added 158 characters in body
Source Link
infinitezero
  • 1.6k
  • 13
  • 23
Loading
insert Pascal
Source Link
Kai Burghardt
  • 1.1k
  • 1
  • 6
  • 13
Loading
unify source code style [e. g. two blank lines between languages, remove horizontal ruler], alphabetical sorting, demote headings by one level [h1 is already the question title]
Source Link
Kai Burghardt
  • 1.1k
  • 1
  • 6
  • 13
Loading
added 14 characters in body
Source Link
Mama Fun Roll
  • 9.9k
  • 1
  • 36
  • 46
Loading
added 232 characters in body
Source Link
Mama Fun Roll
  • 9.9k
  • 1
  • 36
  • 46
Loading
added 898 characters in body
Source Link
bigyihsuan
  • 10.8k
  • 1
  • 23
  • 66
Loading
added 468 characters in body
Source Link
ovs
  • 60.6k
  • 3
  • 47
  • 161
Loading
added 55 characters in body
Source Link
corvus_192
  • 5.7k
  • 15
  • 24
Loading
Add Thunno 2
Source Link
The Thonnu
  • 18.3k
  • 3
  • 16
  • 74
Loading
Add JavaScript
Source Link
noodle person
  • 10.3k
  • 1
  • 22
  • 76
Loading
add vyxal
Source Link
pacman256
  • 4.7k
  • 1
  • 9
  • 32
Loading
imports count as definition
Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62
Loading
Rollback to Revision 1
Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62
Loading
don't use interconnected program
Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62
Loading
Source Link
bsoelch
  • 6k
  • 1
  • 9
  • 62
Loading
Post Made Community Wiki by bsoelch