OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.22.0
/
src
/
math
Server IP: 191.96.63.230
Upload:
Create Dir:
Name
Size
Modified
Perms
π
..
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
abs.go
366 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
acos_s390x.s
3.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
acosh.go
1.71 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
acosh_s390x.s
4.32 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
all_test.go
86.77 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
arith_s390x.go
3.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
arith_s390x_test.go
10.78 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asin.go
1.09 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asin_s390x.s
4.16 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asinh.go
1.92 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
asinh_s390x.s
5.74 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan.go
3.03 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan2.go
1.52 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan2_s390x.s
6.93 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atan_s390x.s
3.69 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atanh.go
1.99 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
atanh_s390x.s
5.06 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
big
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
bits
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
bits.go
1.87 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cbrt.go
2.31 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cbrt_s390x.s
4.89 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
cmplx
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
const.go
2.76 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
const_test.go
1.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
copysign.go
396 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
cosh_s390x.s
5.59 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim.go
1.87 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_amd64.s
1.92 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_arm64.s
963 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_asm.go
344 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_noasm.go
410 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_riscv64.s
1.16 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
dim_s390x.s
1.97 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erf.go
11.51 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erf_s390x.s
8.5 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erfc_s390x.s
14.4 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
erfinv.go
3.37 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
example_test.go
3.75 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp.go
5.38 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp2_asm.go
252 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp2_noasm.go
284 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_amd64.go
261 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_amd64.s
4.24 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_arm64.s
5.36 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_asm.go
268 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_noasm.go
302 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
exp_s390x.s
4.65 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
expm1.go
7.91 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
expm1_s390x.s
5.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
export_s390x_test.go
732 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
export_test.go
357 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor.go
3.29 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_386.s
1.47 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_amd64.s
2 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_arm64.s
573 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_asm.go
431 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_noasm.go
531 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_ppc64x.s
499 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_s390x.s
579 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
floor_wasm.s
459 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
fma.go
4.61 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
frexp.go
929 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
gamma.go
5.53 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
huge_test.go
2.91 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot.go
850 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_386.s
1.81 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_amd64.s
1.05 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_asm.go
264 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
hypot_noasm.go
297 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
j0.go
13.6 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
j1.go
13.3 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
jn.go
7.18 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
ldexp.go
1.05 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
lgamma.go
11.03 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log.go
3.86 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log10.go
873 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
log10_s390x.s
4.73 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log1p.go
6.34 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log1p_s390x.s
5.15 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_amd64.s
3.66 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_asm.go
259 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
log_s390x.s
4.31 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
log_stub.go
292 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
logb.go
1021 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
mod.go
903 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf.go
913 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_arm64.s
447 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_asm.go
292 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_noasm.go
326 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
modf_ppc64x.s
416 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
nextafter.go
1.21 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow.go
3.65 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow10.go
1.24 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
pow_s390x.s
16.27 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
rand
-
02/02/2024 06:09:55 PM
rwxr-xr-x
π
remainder.go
2.04 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
signbit.go
302 bytes
02/02/2024 06:09:55 PM
rw-r--r--
π
sin.go
6.35 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sin_s390x.s
8.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sincos.go
1.76 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sinh.go
1.69 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sinh_s390x.s
5.98 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
sqrt.go
4.75 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
stubs.go
2.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
stubs_s390x.s
12.38 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tan.go
3.68 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tan_s390x.s
2.72 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tanh.go
2.66 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
tanh_s390x.s
4.57 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
trig_reduce.go
3.34 KB
02/02/2024 06:09:55 PM
rw-r--r--
π
unsafe.go
1.27 KB
02/02/2024 06:09:55 PM
rw-r--r--
Editing: atan.go
Close
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package math /* Floating-point arctangent. */ // The original C code, the long comment, and the constants below were // from http://netlib.sandia.gov/cephes/cmath/atan.c, available from // http://www.netlib.org/cephes/cmath.tgz. // The go code is a version of the original C. // // atan.c // Inverse circular tangent (arctangent) // // SYNOPSIS: // double x, y, atan(); // y = atan( x ); // // DESCRIPTION: // Returns radian angle between -pi/2 and +pi/2 whose tangent is x. // // Range reduction is from three intervals into the interval from zero to 0.66. // The approximant uses a rational function of degree 4/5 of the form // x + x**3 P(x)/Q(x). // // ACCURACY: // Relative error: // arithmetic domain # trials peak rms // DEC -10, 10 50000 2.4e-17 8.3e-18 // IEEE -10, 10 10^6 1.8e-16 5.0e-17 // // Cephes Math Library Release 2.8: June, 2000 // Copyright 1984, 1987, 1989, 1992, 2000 by Stephen L. Moshier // // The readme file at http://netlib.sandia.gov/cephes/ says: // Some software in this archive may be from the book _Methods and // Programs for Mathematical Functions_ (Prentice-Hall or Simon & Schuster // International, 1989) or from the Cephes Mathematical Library, a // commercial product. In either event, it is copyrighted by the author. // What you see here may be used freely but it comes with no support or // guarantee. // // The two known misprints in the book are repaired here in the // source listings for the gamma function and the incomplete beta // integral. // // Stephen L. Moshier // moshier@na-net.ornl.gov // xatan evaluates a series valid in the range [0, 0.66]. func xatan(x float64) float64 { const ( P0 = -8.750608600031904122785e-01 P1 = -1.615753718733365076637e+01 P2 = -7.500855792314704667340e+01 P3 = -1.228866684490136173410e+02 P4 = -6.485021904942025371773e+01 Q0 = +2.485846490142306297962e+01 Q1 = +1.650270098316988542046e+02 Q2 = +4.328810604912902668951e+02 Q3 = +4.853903996359136964868e+02 Q4 = +1.945506571482613964425e+02 ) z := x * x z = z * ((((P0*z+P1)*z+P2)*z+P3)*z + P4) / (((((z+Q0)*z+Q1)*z+Q2)*z+Q3)*z + Q4) z = x*z + x return z } // satan reduces its argument (known to be positive) // to the range [0, 0.66] and calls xatan. func satan(x float64) float64 { const ( Morebits = 6.123233995736765886130e-17 // pi/2 = PIO2 + Morebits Tan3pio8 = 2.41421356237309504880 // tan(3*pi/8) ) if x <= 0.66 { return xatan(x) } if x > Tan3pio8 { return Pi/2 - xatan(1/x) + Morebits } return Pi/4 + xatan((x-1)/(x+1)) + 0.5*Morebits } // Atan returns the arctangent, in radians, of x. // // Special cases are: // // Atan(Β±0) = Β±0 // Atan(Β±Inf) = Β±Pi/2 func Atan(x float64) float64 { if haveArchAtan { return archAtan(x) } return atan(x) } func atan(x float64) float64 { if x == 0 { return x } if x > 0 { return satan(x) } return -satan(-x) }