SkillAgentSearch skills...

Rootfinding

root-finding library

Install / Use

/learn @khezen/Rootfinding
About this skill

Quality Score

0/100

Supported Platforms

Universal

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
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated4mo ago
Forks2

Languages

Go

Security Score

92/100

Audited on Nov 6, 2025

No findings