move extras to their own folder
This commit is contained in:
parent
a1e724924b
commit
26a535b19e
4
main.go
4
main.go
|
@ -12,7 +12,6 @@ import (
|
||||||
const NORMAL90CONFIDENCE = 1.6448536269514727
|
const NORMAL90CONFIDENCE = 1.6448536269514727
|
||||||
|
|
||||||
func boundsToLogParams(low float64, high float64) (float64, float64) {
|
func boundsToLogParams(low float64, high float64) (float64, float64) {
|
||||||
|
|
||||||
loglow := math.Log(low)
|
loglow := math.Log(low)
|
||||||
loghigh := math.Log(high)
|
loghigh := math.Log(high)
|
||||||
logmean := (loghigh + loglow) / 2.0
|
logmean := (loghigh + loglow) / 2.0
|
||||||
|
@ -43,9 +42,8 @@ func combineBounds(old_low, old_high, new_low, new_high float64) (float64, float
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
reader := bufio.NewReader(os.Stdin)
|
reader := bufio.NewReader(os.Stdin)
|
||||||
var old_low, old_high float64 // Variables to store the intermediate results
|
var old_low, old_high float64
|
||||||
|
|
||||||
// fmt.Println("Enter two floats separated by a space:")
|
|
||||||
input, _ := reader.ReadString('\n')
|
input, _ := reader.ReadString('\n')
|
||||||
input = strings.TrimSpace(input)
|
input = strings.TrimSpace(input)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user