Path: csiph.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Leo Baumann Newsgroups: de.comp.lang.javascript Subject: Re: Fehler bei Berechnungen in JavaScript Date: Mon, 29 Nov 2021 17:00:06 +0100 Message-ID: References: <1679766.OeldK439Yt@PointedEars.de> <2651122.v9v1EOSiMG@PointedEars.de> <10054887.QKATZ9b1sv@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 29 Nov 2021 16:00:16 -0000 (UTC) Injection-Info: solani.org; logging-data="3570"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Cancel-Lock: sha1:FmdWVXrtj7MNY8Ng1JAwC839qo4= In-Reply-To: X-User-ID: eJwFwYEBACAEBMCVKF7GSfz+I3TnG4oXBoc5nTfVkadOlJb1ZJAVZ1qH3ORacncIbjReVY+3oU2DsiiJD267Fjc= Xref: csiph.com de.comp.lang.javascript:5290 Am 29.11.2021 um 16:56 schrieb Arno Welzel: >> Natürlich ist beides erfüllt, 10 x kontrolliert.:( > Also: > > Du sagst, dass hier würde NaN ergeben: > > Math.abs( > Math.acos( > Math.sin(bs) - > Math.sin(bb) * cose1 / Math.cos(bb) / Math.sin(h) > ) > ) > > Und bs, bb, cose1 und h sind gültige numerische Werte und Math.cos(bb) > sowie Math.sin(h) sind ungleich 0. > > Das ist aus meiner Sicht unmöglich. Darum bin ich aktuell auch verzweifelt und konfus. Definitiv sind cos(bb) sowie sin(h) ungleich Null und alle anderen sind gültige Werte.