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: huge_test.go
Close
// Copyright 2018 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_test import ( . "math" "testing" ) // Inputs to test trig_reduce var trigHuge = []float64{ 1 << 28, 1 << 29, 1 << 30, 1 << 35, 1 << 120, 1 << 240, 1 << 480, 1234567891234567 << 180, 1234567891234567 << 300, MaxFloat64, } // Results for trigHuge[i] calculated with https://github.com/robpike/ivy // using 4096 bits of working precision. Values requiring less than // 102 decimal digits (1 << 120, 1 << 240, 1 << 480, 1234567891234567 << 180) // were confirmed via https://keisan.casio.com/ var cosHuge = []float64{ -0.16556897949057876, -0.94517382606089662, 0.78670712294118812, -0.76466301249635305, -0.92587902285483787, 0.93601042593353793, -0.28282777640193788, -0.14616431394103619, -0.79456058210671406, -0.99998768942655994, } var sinHuge = []float64{ -0.98619821183697566, 0.32656766301856334, -0.61732641504604217, -0.64443035102329113, 0.37782010936075202, -0.35197227524865778, 0.95917070894368716, 0.98926032637023618, -0.60718488235646949, 0.00496195478918406, } var tanHuge = []float64{ 5.95641897939639421, -0.34551069233430392, -0.78469661331920043, 0.84276385870875983, -0.40806638884180424, -0.37603456702698076, -3.39135965054779932, -6.76813854009065030, 0.76417695016604922, -0.00496201587444489, } // Check that trig values of huge angles return accurate results. // This confirms that argument reduction works for very large values // up to MaxFloat64. func TestHugeCos(t *testing.T) { for i := 0; i < len(trigHuge); i++ { f1 := cosHuge[i] f2 := Cos(trigHuge[i]) if !close(f1, f2) { t.Errorf("Cos(%g) = %g, want %g", trigHuge[i], f2, f1) } f3 := Cos(-trigHuge[i]) if !close(f1, f3) { t.Errorf("Cos(%g) = %g, want %g", -trigHuge[i], f3, f1) } } } func TestHugeSin(t *testing.T) { for i := 0; i < len(trigHuge); i++ { f1 := sinHuge[i] f2 := Sin(trigHuge[i]) if !close(f1, f2) { t.Errorf("Sin(%g) = %g, want %g", trigHuge[i], f2, f1) } f3 := Sin(-trigHuge[i]) if !close(-f1, f3) { t.Errorf("Sin(%g) = %g, want %g", -trigHuge[i], f3, -f1) } } } func TestHugeSinCos(t *testing.T) { for i := 0; i < len(trigHuge); i++ { f1, g1 := sinHuge[i], cosHuge[i] f2, g2 := Sincos(trigHuge[i]) if !close(f1, f2) || !close(g1, g2) { t.Errorf("Sincos(%g) = %g, %g, want %g, %g", trigHuge[i], f2, g2, f1, g1) } f3, g3 := Sincos(-trigHuge[i]) if !close(-f1, f3) || !close(g1, g3) { t.Errorf("Sincos(%g) = %g, %g, want %g, %g", -trigHuge[i], f3, g3, -f1, g1) } } } func TestHugeTan(t *testing.T) { for i := 0; i < len(trigHuge); i++ { f1 := tanHuge[i] f2 := Tan(trigHuge[i]) if !close(f1, f2) { t.Errorf("Tan(%g) = %g, want %g", trigHuge[i], f2, f1) } f3 := Tan(-trigHuge[i]) if !close(-f1, f3) { t.Errorf("Tan(%g) = %g, want %g", -trigHuge[i], f3, -f1) } } }