JuliaMath / JuliaMath/Polynomials.jl

depwarns please

Open
#246 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
320
Forks
80
Avg merge
8h 46m
Merged PRs (30d)
3

Description

i really like the new API, whereby one creates a polynomial with `Polynomial` instead of `Poly` and then evaluates it as a functor instead of calling `polyeval`. thanks for that!

however, upgrading is more difficult than it needs to be. one has to read the documentation! gheesh. would be more discoverable were there better deprecation warnings. currently, it just says `Poly` is deprecated and `polyeval` is not found. how about saying "use `Polynomial` instead of `Poly`" and "use `Polynomial(...)(...)` instead of `polyeval`" ?

```
julia> using Polynomials.PolyCompat

help?> Poly
search: Poly poly polyval polyint polyfit polyder PolyCompat @polly evalpoly @evalpoly

Poly{T}

Type of polynomial to support legacy code. Use of this type is not encouraged.

This type provides support for poly, polyval, polyder, and polyint to support older code. It
should not be used for a new code base. Call using Polynomials.PolyCompat to enable this
module.

help?> polyeval
search:

Couldn't find polyeval
Perhaps you meant polyval, padeval or polyder
No documentation found.

Binding polyeval does not exist.
```

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.