Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (20 sloc) 386 Bytes
package main
import (
"fmt"
"math"
"time"
)
func f(x float64) float64 {
return math.Floor(math.Pow(2, 30.403243784-(x*x))) / 1000000000
}
func main() {
starttime := time.Now()
start := -1.
seen := make(map[float64]bool)
for !seen[start] {
seen[start] = true
start = f(start)
}
fmt.Println(start + f(start))
fmt.Println("Elapsed time:", time.Since(starttime))
}
You can’t perform that action at this time.