yes I have imported math in the file I want to use it. But the imported module "math" is not visible in function without a global instruction. But the solutions already proposed seems to work file for my sample program. I will try on my project soon :)