[Numpy-discussion] Polynomial evaluation inconsistencies

Charles R Harris charlesr.harris at gmail.com
Sat Jun 30 18:47:10 EDT 2018


On Sat, Jun 30, 2018 at 4:42 PM, Charles R Harris <charlesr.harris at gmail.com
> wrote:

>
>
> On Sat, Jun 30, 2018 at 3:41 PM, Eric Wieser <wieser.eric+numpy at 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

>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180630/f4f7391d/attachment.html>


More information about the NumPy-Discussion mailing list