From 262284ed65fc1f4b0ec1c39743aa8debed3b8e52 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:38 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/libs@921 a8b55f48-bf90-11e4-a774-851b48703e85 --- qad/utils/qpievaluator.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qad/utils/qpievaluator.cpp b/qad/utils/qpievaluator.cpp index 8357c21..7acd1bf 100644 --- a/qad/utils/qpievaluator.cpp +++ b/qad/utils/qpievaluator.cpp @@ -873,9 +873,7 @@ inline void QPIEvaluator::execFunction(const QPIEvaluatorTypes::Instruction & ci tmpvars[oi].value = atanc_qpie(value(ci.operators[0])); break; case QPIEvaluatorTypes::bfArcctg: - tmp = atanc_qpie(value(ci.operators[0])); - if (tmp == complexd_0) tmpvars[oi].value = 0.; - else tmpvars[oi].value = complexd_1 / tmp; + tmpvars[oi].value = atanc_qpie(-value(ci.operators[0])) + M_PI_2; break; case QPIEvaluatorTypes::bfSh: tmpvars[oi].value = sinh(value(ci.operators[0]));