-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RFC: add evalpoly function, mirroring @evalpoly macro #7186
Conversation
There's also the question of whether this should use |
6c7c7e3
to
1a4c02f
Compare
Any progress on this? |
There doesn't seem to be much demand for such a function. |
Cross-reference to Stackoverflow question along these lines: http://stackoverflow.com/questions/28077057/julia-evalpoly-macro-with-varargs/ |
Rebased this in case anyone is still interested. (Probably should be updated to use |
Updated to use |
Travis failure on OSX seems unrelated: "The job exceeded the maxmimum time limit for jobs, and has been terminated." |
As @stevengj said, doesn't seem like interest in having this in Base. To me, seems like a better match for a package, so I've opened JuliaMath/Polynomials.jl#169. I assume Nemo (http://nemocas.org/index.html) already has it? |
As mentioned in #7146, since we have an
@evalpoly(z, c...)
it makes sense to also have aevalpoly(z, c)
, analogous to Matlab's polyval but with the arguments in reverse order and the coefficients in ascending order by power ofz
.We could alternatively mirror Matlab and store the coefficients in descending order, in which case we might as well swap the arguments and call it
polyval
. However, this issue seems to have been discussed in vtjnash/Polynomial.jl#5, and the consensus seems to have been to reject Matlab's ordering, resulting in @Keno's Polynomials.jl fork.