I saw a small function that used math.

def f(x,y): return math.exp(x/5)*math.sin(y)

I removed math. from the terms and it worked just the same. What is the purpose of math. ?

1 | initial version |

I saw a small function that used math.

def f(x,y): return math.exp(x/5)*math.sin(y)

I removed math. from the terms and it worked just the same. What is the purpose of math. ?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.