fixes the correction of the Jacobian when encountering complex

numbers. This should be 2*imag(g1) and not imag(g1).^2
issue#70
Michel Juillard 2012-05-18 16:19:07 +02:00
parent 2fbd5d33c6
commit 7093a54f3a
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ StaticModel::writeStaticModel(ostream &StaticOutput, bool use_dll) const
<< " %" << endl << endl
<< jacobian_output.str()
<< " if ~isreal(g1)" << endl
<< " g1 = real(g1)+imag(g1).^2;" << endl
<< " g1 = real(g1)+2*imag(g1);" << endl
<< " end" << endl
<< "end" << endl
<< "if nargout >= 3," << endl