When I run below code in SageNB, it rised error:

import numpy
x=numpy.arange(0,1,.05)
y=numpy.sin(2*pi*x)


Traceback (click to the left for traceback)
...
AttributeError: sin

but the same code works well in python, how can I obtain array x & y
above except using [... for ... in range()] ?

thanks
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to