# Revision history [back]

Ok, so the point is that when making an "interactive" import, the imported module is not preparsed ?

def MyFunction(x,y):
from sage.rings.all import Integer
print Integer(x)/Integer(y)


I cannot do that in my real live idea. My purpose was to write a function that convert a point (x,y) into polar coordinates (radius,angle) using atan(y/x). (the aim was to show the algorithm to some students)

Instead, you gave me the idea to write this one :

def MyFunction(x,y):
x=SR(x)
print x/y


This works fine.

Have a good night Laurent