From: hackbard Date: Thu, 8 Aug 2002 23:22:28 +0000 (+0000) Subject: corrected formel X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2ec381e96ecc833913e5294fc9c0154e771305f;p=my-code%2Ftriang.git corrected formel --- 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; }