Commit 26d49985 authored by BITTU KUMAR's avatar BITTU KUMAR

Adding mysquare to class

parent e803c84b
......@@ -100,6 +100,8 @@ def conj(comp):
else:
return comp
def mysquare(comp):
return comp**2
def mag(comp):
return (comp.x**2+comp.y**2)**(0.5)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment