{"id":15648087,"url":"https://github.com/noracodes/nrfind","last_synced_at":"2025-12-12T14:16:23.405Z","repository":{"id":57646083,"uuid":"78659050","full_name":"NoraCodes/nrfind","owner":"NoraCodes","description":"Newton-Raphson root finder for arbitrary differentiable functions","archived":false,"fork":false,"pushed_at":"2020-01-31T00:03:28.000Z","size":18,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-09T19:44:04.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NoraCodes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T16:48:07.000Z","updated_at":"2023-05-01T11:47:36.000Z","dependencies_parsed_at":"2022-09-08T15:11:51.772Z","dependency_job_id":null,"html_url":"https://github.com/NoraCodes/nrfind","commit_stats":null,"previous_names":["leotindall/nrfind"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fnrfind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fnrfind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fnrfind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NoraCodes%2Fnrfind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NoraCodes","download_url":"https://codeload.github.com/NoraCodes/nrfind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251722825,"owners_count":21633023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:23:20.723Z","updated_at":"2025-12-12T14:16:23.351Z","avatar_url":"https://github.com/NoraCodes.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrfind\n[![Crates.io version badge](https://img.shields.io/crates/v/nrfind.svg)](https://crates.io/crates/nrfind) [![Build Status](https://travis-ci.org/LeoTindall/nrfind.svg?branch=master)](https://travis-ci.org/LeoTindall/nrfind) ![Passively Maintained](https://img.shields.io/badge/maintenance-passively--maintained-yellowgreen.svg)\n\n`nrfind` provides a Newton-Raphson root finder for arbitrary differentiable functions, as well as convenient wrappers for common use cases like square roots.\n\nDocumentation is available on [docs.rs](https://docs.rs/nrfind)\n\nA simple example of usage to find the roots of x^3 + x^2 + 1 in 18 iterations:\n\n```rust\nextern crate nrfind;\n\n// The function for whose roots find_root will solve\nfn f(x: f64) -\u003e f64 {\n    x.powi(3) + x.powi(2) + 1.0\n}\n\n// That function's derivative\nfn fd(x: f64) -\u003e f64 {\n    (3.0 * x.powi(2)) + (2.0 * x)\n}\n\nfn main() {\n    let initial_guess = 100.0;\n    let precision = 0.1;\n    let iterations = 18;\n\n    println!(\"x^3 + x^2 + 1 = 0 when x ~= {}\",\n             nrfind::find_root(\u0026f, \u0026fd, \n                               initial_guess, \n                               precision, \n                               iterations).unwrap());\n}\n```\n\nThis will print: `x^3 + x^2 + 1 = 0 when x ~= -1.4675327346575013`.\n\nNote that while this method is guaranteed to approximate _a_ root, it may not be\nthe root you care about! Changing the given `x0` guess can have an impact on \nwhich root is approximated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fnrfind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnoracodes%2Fnrfind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnoracodes%2Fnrfind/lists"}