JuliaMath / JuliaMath/Roots.jl

Error root

Open
#453 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
413
Forks
61
Avg merge
57m
Merged PRs (30d)
5

Description

An error occurs when using Roots.jl to solve an equation, the result should be -2.0, not -1.58. The error only occurs when I use uncertainties.

using Measurements, Roots

a = measurement(1.0 , 0.1)
b = measurement(-3.0 , 0.1)
c = measurement(-10.0, 0.1)

f(x) = a*x^2 + b*x + c

find_zero(f, measurement(0.0, 0.1))

−1.58±0.12

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.