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| <cn95xqj...@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@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion > >
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion