Commit 0f72eedd by Peter Baratta

Add variable i as an imaginary unit

parent 944e3390
...@@ -57,7 +57,8 @@ DEFAULT_FUNCTIONS = {'sin': numpy.sin, ...@@ -57,7 +57,8 @@ DEFAULT_FUNCTIONS = {'sin': numpy.sin,
'arccsch': calcfunctions.arccsch, 'arccsch': calcfunctions.arccsch,
'arccoth': calcfunctions.arccoth 'arccoth': calcfunctions.arccoth
} }
DEFAULT_VARIABLES = {'j': numpy.complex(0, 1), DEFAULT_VARIABLES = {'i': numpy.complex(0, 1),
'j': numpy.complex(0, 1),
'e': numpy.e, 'e': numpy.e,
'pi': numpy.pi, 'pi': numpy.pi,
'k': scipy.constants.k, 'k': scipy.constants.k,
......
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