On Sat, Jun 30, 2018 at 4:42 PM, Charles R Harris <charlesr.harris@gmail.com> wrote:On Sat, Jun 30, 2018 at 3:41 PM, Eric Wieser <wieser.eric+numpy@gmail.com> wrote:Since the one of the arguments for the decreasing order seems to just be textual representation - do we want to tweak the repr to something like
Polynomial(lambda x: 2*x**3 + 3*x**2 + x + 0)
(And add a constructor that calls the lambda with
Polynomial(1)
)Eric
IIRC there was a proposal for that. There is the possibility of adding renderers for latex and html that could be used by Jupyter, and I think the ordering was an option.See https://github.com/numpy/numpy/issues/8893 for the proposal. BTW, if someone would like to work on this, go for it.Chuck
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy- discussion