From f2ec381e96ecc833913e5294fc9c0154e771305f Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 8 Aug 2002 23:22:28 +0000 Subject: [PATCH] corrected formel --- triang.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/triang.c b/triang.c index 34b2ffe..ca5207a 100644 --- a/triang.c +++ b/triang.c @@ -23,9 +23,9 @@ double zaehler, nenner, zusatz; zaehler=MAXSIGNAL*(1./E1-1./E2)-(X1-X2)*(X1-X2)-(Y1-Y2)*(Y1-Y2); nenner=2*sqrt((X1-X2)*(X1-X2)+(Y1-Y2)*(Y1-Y2)); -zusatz=sqrt((double)E1/E2); +zusatz=sqrt((double)MAXSIGNAL/E1); -*delta1=acos(zaehler/(nenner*zusatz)); +*delta1=zusatz*sin(acos(zaehler/(nenner*zusatz))); *delta2=zaehler/nenner; } -- 2.39.2