JuliaMath / JuliaMath/Polynomials.jl
[Feature Request] Add a convenience macro for making Polynomials
Open
- Dominant language
- Julia
- Stars
- 320
- Forks
- 80
- Avg merge
- 8h 46m
- Merged PRs (30d)
- 3
Description
It would be nice if there where a convenient way to make a Polynomial without having to write out every time "Polynomial"
For instance, including something like:
```
macro P_str(s)
Polynomial(eval(Meta.parse("["*s*"]")))
end
```
Makes it easy to make a Polynomial like so:
```
julia> P"1,2,4,5,6"
Polynomial(1 + 2*x + 4*x^2 + 5*x^3 + 6*x^4)
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.