Commit dfcfdb79 authored by RISHABH GARG's avatar RISHABH GARG

Exponential function created

parent 616eb24f
from complexno import ComplexNumber
def myexponent(x):
s = ComplexNumber(1.0,0.0)
term = ComplexNumber(1.0,0.0)
if (type(x)==int or type(x)==float):
s = 1.0
term = 1.0
for i in range(1,7):
term = term*x/i
s = s + term
return s
dvdvvdv
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