| Deutsch English Français Italiano |
|
<vafj5h$1ueum$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ron AARON <clf@8th-dev.com> Newsgroups: comp.lang.forth Subject: Re: Complex square root of -1 : zsqrt(-1) Date: Sun, 25 Aug 2024 18:38:25 +0300 Organization: A noiseless patient Spider Lines: 27 Message-ID: <vafj5h$1ueum$1@dont-email.me> References: <cc2a1ec5eae8d18d290b398af3c013cb@www.novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 25 Aug 2024 17:38:25 +0200 (CEST) Injection-Info: dont-email.me; posting-host="4ed3501531546367930964dee840c6ba"; logging-data="2046934"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HFFB0frdihIo3j1by2Nqd" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:aSDz9HnOwnmKa51iutvh1kFPm7Q= In-Reply-To: <cc2a1ec5eae8d18d290b398af3c013cb@www.novabbs.com> Content-Language: en-US, he Just out of curiosity I tried it in 8th: ok> -1+0i 0.5 c:^ . 0.000000+1.000000i and then: ok> -1+0i 0.5 c:^ dup c:* . -1.000000+0.000000i On 25/08/2024 11:34, ahmed wrote: > Hi, > With gforth, complex.fs included. > > When calculating the square root of -1, I find that: > -1e 0e 0.5e 0e z** z. 0.0000000000000000612303176911189+1.i ok > -1e 0e zsqrt z. NaN ok > > > What's the problem with zsqrt? > > NB. > -1e 1e-16 zsqrt z. 0.0000000000000000612303176911189+1.i ok > -1e 1e-100 zsqrt z. 0.0000000000000000612303176911189+1.i ok > > > Ahmed