Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Why is math.exp or math.sin used?

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. ?