[Numpy-discussion] linspaces

Vincent Douce Mathoscope mathoscope at netcourrier.com
Sun Jan 28 01:07:30 EST 2018


hi
i have 2 questions

- i have a parametric plot :
T=np.linespace(things)
X=f(T)*np.cos(T)
Y=f(T)*np.sin(T)
i would like to get the first and the last point of this polar curve
in the specs of "linspace" (https://docs.scipy.org/doc/numpy/reference/generated/numpy.linspace.html <https://docs.scipy.org/doc/numpy/reference/generated/numpy.linspace.html>) i dont see how to do that automatically
is there something simple like "first(X)" and "last(X)"

- i have a function :
rotation(vect,theta) which takes vect=[a,b] and theta-rotates it by a matrix
how to use this function or such a function to rotate a tuple (X,Y) with X,Y as described above in this message ?

        ––––––––––––––––––––––––––
                  Vincent Douce
               :=: Mathoscope :=:
             http://mathoscope.xyz <http://mathoscope.xyz/>
                 06°13°11°07°26
          Bagnères de Bigorre 65200




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


More information about the NumPy-Discussion mailing list