Source File
tan.go
Belonging Package
math
package math
var _tanP = [...]float64{
-1.30936939181383777646e4, // 0xc0c992d8d24f3f38
1.15351664838587416140e6, // 0x413199eca5fc9ddd
-1.79565251976484877988e7, // 0xc1711fead3299176
}
var _tanQ = [...]float64{
1.00000000000000000000e0,
1.36812963470692954678e4, //0x40cab8a5eeb36572
-1.32089234440210967447e6, //0xc13427bc582abc96
2.50083801823357915839e7, //0x4177d98fc2ead8ef
-5.38695755929454629881e7, //0xc189afe03cbe5a31
}
:= false
if < 0 {
= -
= true
}
var uint64
var , float64
if >= reduceThreshold {
, = trigReduce()
} else {
= uint64( * (4 / Pi)) // integer part of x/(Pi/4), as integer for tests on the phase angle
= float64() // integer part of x/(Pi/4), as float
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |