Popularity
1.1
Growing
Activity
0.0
Declining
5
3
0

Programming language: Go
License: MIT License
Latest version: v1.0.1

rootfinding alternatives and similar packages

Based on the "Science and Data Analysis" category.
Alternatively, view rootfinding alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of rootfinding or a related project?

Add another 'Science and Data Analysis' Package

README

rootfinding

GoDoc Build Status codecov Go Report Card

github.com/khezen/rootfinding

  • Brent's Method

Example

package main

import(
    "fmt"
    "github.com/khezen/rootfinding"
)

func f(x float64) float64 {
    return math.Pow(x, 4) - 2*math.Pow(x, 2) + 0.25
}

const(
    intervalStart = -100
    intervalEnd = 100
    precision = 6
)
func main(){
    root, err := rootfinding.Brent(f, intervalStart, intervalEnd, precision)
    if err != nil {
        panic(err)
    }
    fmt.Println(root)
}       
0.366025403784438