[Numpy-discussion] Re: Adding `P.coef_natural` property to polynomials

2024-09-01 Thread oc-spam66--- via NumPy-Discussion
I can summarize the different possibilities/proposals: (A) Create new properties: add a `P.coef_natural` property, with a suitable documentation ; maybe also add a `P.coef_internal` property. There would be no change to the existing code (only addition of properties). (B) Change `P.coef` attribut

[Numpy-discussion] Adding `P.coef_natural` property to polynomials

2024-08-31 Thread oc-spam66--- via NumPy-Discussion
Hello, I would like to add a property `P.coef_natural` to polynomials. Would you accept it? Reason: Most people who had ground courses on polynomials expect `P.coef` to return the natural coefficients. They face a huge confusion because this is not the case and because the `coef` attribute is n

[Numpy-discussion] Re: Adding `P.coef_natural` property to polynomials

2024-09-16 Thread oc-spam66--- via NumPy-Discussion
What do you mean by "changing the API"? - Case (A): Adding a property `P.coef_natural` is not a change IMO, it is an addition. - Case (B): Do you consider that changing `P.coef` from an attribute to a property is a change in the API ? It is transparent IMO. ___

[Numpy-discussion] Silent data type casting

2025-06-09 Thread oc-spam66--- via NumPy-Discussion
Hello, I discovered the horror below. Do we really want silent data type casting in this case? from numpy import * x = array([0]) x[0] = 1.7# Silent data type casting print(x)# Prints [1] instead of [1.7] Olivier ___ NumPy-Discussion maili