From cff15554211bdde628ac4a4ceb8091ba79387764 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Tue, 31 Mar 2020 08:48:43 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@999 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src_main/math/pievaluator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src_main/math/pievaluator.cpp b/src_main/math/pievaluator.cpp index 0c74a6ae..96da7e21 100755 --- a/src_main/math/pievaluator.cpp +++ b/src_main/math/pievaluator.cpp @@ -1039,9 +1039,7 @@ inline void PIEvaluator::execFunction(const Instruction & ci) { tmpvars[oi].value = atanc(value(ci.operators[0])); break; case bfArcctg: - tmp = atanc(value(ci.operators[0])); - if (tmp == complexd_0) tmpvars[oi].value = 0.; - else tmpvars[oi].value = complexd_1 / tmp; + tmpvars[oi].value = atanc(-value(ci.operators[0])) + M_PI_2; break; case bfSh: tmpvars[oi].value = sinh(value(ci.operators[0]));