[Numpy-discussion] proposal: new logspace without the log in the argument

. nr4qewd6v4 at snkmail.com
Fri Feb 19 07:19:51 EST 2016


What about this API?  You specify the start point, ratio, and number of
points.

http://spacepy.lanl.gov/doc/autosummary/spacepy.toolbox.geomspace.html

On Fri, Feb 19, 2016 at 7:10 AM, Andrew Nelson andyfaff-at-gmail.com |numpy
mailing list/Example Allow| <cn95xqjlpt at sneakemail.com> wrote:

> With respect to geomspace proposals: instead of specifying start and end
> values and the number of points I'd like to have an option where I can set
> the start and end points and the ratio. The function would then work out
> the correct number of points to get closest to the end value..
>
> E.g. geomspace(start=1, finish=2, ratio=1.03)
>
> The first entries would be 1.0, 1.03, 1*1.03**2, etc.
>
> I have a requirement for the correct ratio between the points, and it's a
> right bind having to calculate the exact number of points needed.
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> https://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20160219/0b86ddda/attachment.html>


More information about the NumPy-Discussion mailing list