[Numpy-discussion] Array of size 'n' with common difference < 1

Youngung Jeong youngung.jeong at gmail.com
Fri Apr 29 03:30:23 EDT 2011


Use  " >> np.arange(-60, 90.0001, 0.25)"

Youngung Jeong

Graduate student
Materials Mechanics Laboratory
Graduate Institute of Ferrous Technology
Pohang University of Science and Technology




On Fri, Apr 29, 2011 at 4:26 PM, dileep kunjaai <dileepkunjaai at gmail.com>wrote:

> Dear sir,
>  I am trying to make an array of varies from  -60 to 90 with difference
> 0.25. I tried the following command ...
>
> >>import numpy as N
>     lat=N.array(xrange(-6000, 9000, 25), dtype=float)
>     print lat/100
>
>
> I know that there is another easy method......
> Please give me a replay ........
>                                                                  Thanking
> you..............
>
>
> --
> DILEEPKUMAR. R
> J R F, IIT DELHI
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110429/dda4e4b0/attachment.html>


More information about the NumPy-Discussion mailing list