Commit 2ca4e75b authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

ExpressionCalculator: bug fix for ei

parent 5e979c2e
......@@ -237,7 +237,7 @@ private:
T>::Type eToTheI(T x)
{
typename Real<T>::Type r = PsimagLite::real(x);
return T(cos(r),sin(r));
return ::exp(PsimagLite::imag(-x))*T(cos(r),sin(r));
}
static SizeType findAry(PsimagLite::String op)
......
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