JuliaMath / Roots.jl

Root finding functions for Julia
http://juliamath.github.io/Roots.jl/
MIT License
355 stars 56 forks source link

Example from README stalls #59

Closed dlfivefifty closed 2 years ago

dlfivefifty commented 7 years ago
julia> using Polynomials

julia> x = poly([0])
Poly(x)

julia> fzeros(x^5 -x - 1)
ERROR: UndefVarError: fzeros not defined

julia> using Roots
INFO: Precompiling module Roots.

julia> fzeros(x^5 -x - 1)  #killed after over an hour
dlfivefifty commented 7 years ago
julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin16.3.0)
  CPU: Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz
  WORD_SIZE: 64
  BLAS: libgfortblas
  LAPACK: liblapack
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)

julia> Pkg.status()
25 required packages:
 - ApproxFun                     0.4.1+             development (dirty)
 - Atom                          0.5.8
 - Contour                       0.2.0
 - DifferentialEquations         1.6.0
 - Documenter                    0.8.10
 - ForwardDiff                   0.3.3
 - GLPlot                        0.0.5+             master
 - GLVisualize                   0.1.2+             master
 - GR                            0.18.0
 - Graphs                        0.7.1
 - IJulia                        1.3.3
 - Interact                      0.4.3
 - IntervalSets                  0.0.2
 - JLD                           0.6.8
 - Lexicon                       0.1.18
 - LightGraphs                   0.7.2
 - PkgDev                        0.1.3
 - Plotly                        0.1.1
 - PyPlot                        2.2.4
 - QuartzImageIO                 0.1.4
 - SingularIntegralEquations     0.2.1+             development (dirty)
 - SnoopCompile                  0.1.0
 - SymPy                         0.4.0
 - TikzGraphs                    0.3.0
 - ValidatedNumerics             0.5.1
147 additional packages:
 - ASTInterpreter                0.0.4
 - AbstractTrees                 0.0.4
 - AlgebraicDiffEq               0.1.0
 - ApproxFunIntrospect           0.0.0-             master (unregistered)
 - ArgParse                      0.4.0
 - AutoHashEquals                0.0.10
 - BandedMatrices                0.2.0+             master
 - BinDeps                       0.4.5
 - Blink                         0.5.0
 - Blosc                         0.1.7
 - BufferedStreams               0.2.1
 - COFF                          0.0.2
 - CRC                           1.2.0
 - CRlibm                        0.3.1
 - Calculus                      0.1.15
 - ChunkedArrays                 0.1.1
 - CodeTools                     0.4.3
 - Codecs                        0.2.0
 - ColorTypes                    0.2.12
 - ColorVectorSpace              0.1.12
 - Colors                        0.6.9
 - Combinatorics                 0.3.2
 - Compat                        0.12.0
 - ComplexPhasePortrait          0.0.0-             master (unregistered)
 - Compose                       0.4.4
 - Conda                         0.4.0
 - DWARF                         0.1.0
 - DataStructures                0.5.1
 - DelayDiffEq                   0.0.1
 - DiffBase                      0.0.2
 - DiffEqBase                    0.6.0
 - DiffEqCallbacks               0.0.1
 - DiffEqDevTools                0.6.0
 - DiffEqMonteCarlo              0.0.1
 - DiffEqPDEBase                 0.0.3
 - DiffEqParamEstim              0.0.4
 - DiffEqSensitivity             0.0.4
 - Distances                     0.3.2
 - Distributions                 0.11.1
 - DocStringExtensions           0.3.1
 - Docile                        0.5.23
 - DualNumbers                   0.2.3+             pull-request/85d3ad19
 - ELF                           0.1.0
 - EllipsisNotation              0.0.2
 - FastGaussQuadrature           0.1.0+             master
 - FastTransforms                0.0.7+             master
 - FileIO                        0.2.1
 - FiniteElementDiffEq           0.2.1
 - FixedPointNumbers             0.2.1
 - FixedSizeArrays               0.2.5              master
 - FreeType                      1.1.0
 - GLAbstraction                 0.2.1+             master
 - GLFW                          1.2.1
 - GLWindow                      0.2.1+             master
 - GZip                          0.2.20
 - Gallium                       0.0.4
 - GenericSVD                    0.0.2
 - GeometryTypes                 0.2.1
 - Graphics                      0.1.3
 - HDF5                          0.7.2
 - Hiccup                        0.1.1
 - Holomorphic                   0.0.0-             master (unregistered, dirty)
 - Homebrew                      0.4.2
 - HttpCommon                    0.2.6
 - HttpParser                    0.2.0
 - HttpServer                    0.1.7
 - Images                        0.5.14
 - InplaceOps                    0.1.0
 - IterativeSolvers              0.2.2
 - Iterators                     0.2.0
 - JSON                          0.8.1
 - JuliaParser                   0.7.4
 - Juno                          0.2.5
 - LNR                           0.0.2
 - LaTeXStrings                  0.2.0
 - Lazy                          0.11.5
 - LearnBase                     0.1.1
 - LegacyStrings                 0.2.0
 - Libz                          0.2.2
 - LightXML                      0.4.0
 - LineSearches                  0.1.4
 - LossFunctions                 0.0.2
 - LsqFit                        0.1.1
 - MachO                         0.0.4
 - MacroTools                    0.3.4
 - MbedTLS                       0.4.2
 - Measures                      0.0.3
 - Media                         0.2.4
 - MeshIO                        0.0.6
 - MetaPkg                       0.0.0-             master (unregistered)
 - ModernGL                      0.1.1              master
 - MultivariateOrthogonalPolynomials 0.0.0-             master (unregistered, dirty)
 - Mustache                      0.1.3
 - Mux                           0.2.2
 - NIfTI                         0.1.1
 - NLsolve                       0.9.1
 - NaNMath                       0.2.2
 - Nettle                        0.2.4
 - ObjFileBase                   0.0.4
 - Optim                         0.7.4
 - OrdinaryDiffEq                1.0.1
 - PDMats                        0.5.2
 - Packing                       0.0.4
 - ParameterizedFunctions        0.6.0
 - Parameters                    0.6.0
 - ParserCombinator              1.7.11
 - PlotlyJS                      0.5.2
 - Polynomials                   0.1.2
 - PositiveFactorizations        0.0.3
 - Primes                        0.1.2
 - PyCall                        1.8.0
 - Quaternions                   0.1.1
 - Ranges                        0.0.1
 - Reactive                      0.3.6
 - RecipesBase                   0.1.0
 - RecursiveArrayTools           0.1.2
 - Reexport                      0.0.3
 - Requests                      0.3.12
 - ResettableStacks              0.0.1
 - Rmath                         0.1.6
 - Roots                         0.2.1
 - SHA                           0.3.0
 - SIUnits                       0.1.0
 - SO                            0.0.0-             master (unregistered, dirty)
 - SignedDistanceFields          0.1.0
 - SimpleTraits                  0.2.0
 - SpectralMeasures              0.0.0-             master (unregistered, dirty)
 - SpectralTimeStepping          0.0.0-             master (unregistered)
 - StatsBase                     0.12.0
 - StatsFuns                     0.3.1
 - StochasticDiffEq              0.5.0
 - StokesDiffEq                  0.1.0
 - StructIO                      0.0.2
 - Sundials                      0.7.0
 - SymEngine                     0.1.2
 - TerminalUI                    0.0.2
 - TexExtensions                 0.0.3
 - TextWrap                      0.1.6
 - TikzPictures                  0.3.5
 - ToeplitzMatrices              0.1.1              7c2b2e96 (dirty)
 - URIParser                     0.1.7
 - UnicodeFun                    0.0.2
 - VT100                         0.0.2
 - VectorizedRoutines            0.0.2
 - WebSockets                    0.2.1
 - ZMQ                           0.4.0
 - Zlib                          0.1.12
jverzani commented 7 years ago

Hmm, that's bad :( Thanks for reporting it. I'll have a look.

KronosTheLate commented 2 years ago

The example has been updated, and this can be closed.