core/math/cmplx
math_cmplx
Constants
6abs
abs :: builtin.absSourceThe original C code, the long comment, and the constants below are from http://netlib.sandia.gov/cephes/c9x-complex/clog.c. The go code is a simplified version of the original C.
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
conj
conj :: builtin.conjSourceimag
imag :: builtin.imagSourcejmag
jmag :: builtin.jmagSourcekmag
kmag :: builtin.kmagSourcereal
real :: builtin.realSourceProcedures
61acos_complex128
acos_complex128 :: proc(x: complex128) -> (complex128)Sourceacos_complex32
acos_complex32 :: proc(x: complex32) -> (complex32)Sourceacos_complex64
acos_complex64 :: proc(x: complex64) -> (complex64)Sourceacosh_complex128
acosh_complex128 :: proc(x: complex128) -> (complex128)Sourceacosh_complex32
acosh_complex32 :: proc(x: complex32) -> (complex32)Sourceacosh_complex64
acosh_complex64 :: proc(x: complex64) -> (complex64)Sourceasin_complex128
asin_complex128 :: proc(x: complex128) -> (complex128)Sourceasin_complex32
asin_complex32 :: proc(x: complex32) -> (complex32)Sourceasin_complex64
asin_complex64 :: proc(x: complex64) -> (complex64)Sourceasinh_complex128
asinh_complex128 :: proc(x: complex128) -> (complex128)Sourceasinh_complex32
asinh_complex32 :: proc(x: complex32) -> (complex32)Sourceasinh_complex64
asinh_complex64 :: proc(x: complex64) -> (complex64)Sourceatan_complex128
atan_complex128 :: proc(x: complex128) -> (complex128)Sourceatan_complex32
atan_complex32 :: proc(x: complex32) -> (complex32)Sourceatan_complex64
atan_complex64 :: proc(x: complex64) -> (complex64)Sourceatanh_complex128
atanh_complex128 :: proc(x: complex128) -> (complex128)Sourceatanh_complex32
atanh_complex32 :: proc(x: complex32) -> (complex32)Sourceatanh_complex64
atanh_complex64 :: proc(x: complex64) -> (complex64)Sourcecos_complex128
cos_complex128 :: proc(x: complex128) -> (complex128)Sourcecosh_complex128
cosh_complex128 :: proc(x: complex128) -> (complex128)Sourcecot_complex128
cot_complex128 :: proc(x: complex128) -> (complex128)Sourceexp_complex128
exp_complex128 :: proc(x: complex128) -> (complex128)Sourceexp_complex32
exp_complex32 :: proc(x: complex32) -> (complex32)Sourceexp_complex64
exp_complex64 :: proc(x: complex64) -> (complex64)Sourceinf_complex128
inf_complex128 :: proc() -> (complex128)Sourceinf_complex32
inf_complex32 :: proc() -> (complex32)Sourceinf_complex64
inf_complex64 :: proc() -> (complex64)Sourceis_inf_complex128
is_inf_complex128 :: proc(x: complex128) -> (bool)Sourceis_inf_complex32
is_inf_complex32 :: proc(x: complex32) -> (bool)Sourceis_inf_complex64
is_inf_complex64 :: proc(x: complex64) -> (bool)Sourceis_nan_complex128
is_nan_complex128 :: proc(x: complex128) -> (bool)Sourceis_nan_complex32
is_nan_complex32 :: proc(x: complex32) -> (bool)Sourceis_nan_complex64
is_nan_complex64 :: proc(x: complex64) -> (bool)Sourceln_complex128
ln_complex128 :: proc(x: complex128) -> (complex128)Sourceln_complex32
ln_complex32 :: proc(x: complex32) -> (complex32)Sourceln_complex64
ln_complex64 :: proc(x: complex64) -> (complex64)Sourcelog10_complex128
log10_complex128 :: proc(x: complex128) -> (complex128)Sourcelog10_complex32
log10_complex32 :: proc(x: complex32) -> (complex32)Sourcelog10_complex64
log10_complex64 :: proc(x: complex64) -> (complex64)Sourcenan_complex128
nan_complex128 :: proc() -> (complex128)Sourcenan_complex32
nan_complex32 :: proc() -> (complex32)Sourcenan_complex64
nan_complex64 :: proc() -> (complex64)Sourcephase_complex128
phase_complex128 :: proc(x: complex128) -> (f64)Sourcephase_complex32
phase_complex32 :: proc(x: complex32) -> (f16)Sourcephase_complex64
phase_complex64 :: proc(x: complex64) -> (f32)Sourcepolar_complex128
polar_complex128 :: proc(x: complex128) -> (, r)Sourcepolar_complex32
polar_complex32 :: proc(x: complex32) -> (, r)Sourcepolar_complex64
polar_complex64 :: proc(x: complex64) -> (, r)Sourcepow_complex128
pow_complex128 :: proc(x: complex128, y: complex128) -> (complex128)Sourcepow_complex32
pow_complex32 :: proc(x: complex32, y: complex32) -> (complex32)Sourcepow_complex64
pow_complex64 :: proc(x: complex64, y: complex64) -> (complex64)Sourcerect_complex128
rect_complex128 :: proc() -> (complex128)Sourcerect_complex32
rect_complex32 :: proc() -> (complex32)Sourcerect_complex64
rect_complex64 :: proc() -> (complex64)Sourcesin_complex128
sin_complex128 :: proc(x: complex128) -> (complex128)SourceThe original C code, the long comment, and the constants below are from http://netlib.sandia.gov/cephes/c9x-complex/clog.c. The go code is a simplified version of the original C.
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
sinh_complex128
sinh_complex128 :: proc(x: complex128) -> (complex128)Sourcesqrt_complex128
sqrt_complex128 :: proc(x: complex128) -> (complex128)Sourcesqrt_complex128 returns the square root of x. The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
sqrt_complex32
sqrt_complex32 :: proc(x: complex32) -> (complex32)Sourcesqrt_complex32 returns the square root of x. The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
sqrt_complex64
sqrt_complex64 :: proc(x: complex64) -> (complex64)Sourcesqrt_complex64 returns the square root of x. The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
tan_complex128
tan_complex128 :: proc(x: complex128) -> (complex128)Sourcetanh_complex128
tanh_complex128 :: proc(x: complex128) -> (complex128)SourceProcedure Groups
22acos
acos :: proc{acos_complex32, acos_complex64, acos_complex128}SourceThe original C code, the long comment, and the constants below are from http://netlib.sandia.gov/cephes/c9x-complex/clog.c. The go code is a simplified version of the original C.
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
acosh
acosh :: proc{acosh_complex32, acosh_complex64, acosh_complex128}Sourceasin
asin :: proc{asin_complex32, asin_complex64, asin_complex128}Sourceasinh
asinh :: proc{asinh_complex32, asinh_complex64, asinh_complex128}Sourceatan
atan :: proc{atan_complex32, atan_complex64, atan_complex128}Sourceatanh
atanh :: proc{atanh_complex32, atanh_complex64, atanh_complex128}Sourcecos
cos :: proc{cos_complex128}Sourcecosh
cosh :: proc{cosh_complex128}Sourcecot
cot :: proc{cot_complex128}Sourceexp
exp :: proc{exp_complex32, exp_complex64, exp_complex128}Sourceis_inf
is_inf :: proc{is_inf_complex32, is_inf_complex64, is_inf_complex128}Sourceis_nan
is_nan :: proc{is_nan_complex32, is_nan_complex64, is_nan_complex128}Sourceln
ln :: proc{ln_complex32, ln_complex64, ln_complex128}Sourcelog10
log10 :: proc{log10_complex32, log10_complex64, log10_complex128}Sourcephase
phase :: proc{phase_complex32, phase_complex64, phase_complex128}Sourcepolar
polar :: proc{polar_complex32, polar_complex64, polar_complex128}Sourcepow
pow :: proc{pow_complex32, pow_complex64, pow_complex128}Sourcesin
sin :: proc{sin_complex128}Sourcesinh
sinh :: proc{sinh_complex128}Sourcesqrt
sqrt :: proc{sqrt_complex32, sqrt_complex64, sqrt_complex128}Sourcesqrt returns the square root of x. The result r is chosen so that real(r) ≥ 0 and imag(r) has the same sign as imag(x).
tan
tan :: proc{tan_complex128}Sourcetanh
tanh :: proc{tanh_complex128}Source