Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #132039

Complex square root of -1 : zsqrt(-1)

From melahi_ahmed@yahoo.fr (ahmed)
Newsgroups comp.lang.forth
Subject Complex square root of -1 : zsqrt(-1)
Date 2024-08-25 08:34 +0000
Organization novaBBS
Message-ID <cc2a1ec5eae8d18d290b398af3c013cb@www.novabbs.com> (permalink)

Show all headers | View raw


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

Back to comp.lang.forth | Previous | NextNext in thread | Find similar


Thread

Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-25 08:34 +0000
  Re: Complex square root of -1 : zsqrt(-1) Ron AARON <clf@8th-dev.com> - 2024-08-25 18:38 +0300
  Re: Complex square root of -1 : zsqrt(-1) minforth@gmx.net (minforth) - 2024-08-25 16:50 +0000
  Re: Complex square root of -1 : zsqrt(-1) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2024-08-25 17:13 +0000
    Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-25 17:38 +0000
      Re: Complex square root of -1 : zsqrt(-1) Krishna Myneni <krishna.myneni@ccreweb.org> - 2024-08-25 16:04 -0500
      Re: Complex square root of -1 : zsqrt(-1) anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2024-08-28 08:36 +0000
        Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 11:33 +0000
          Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 14:49 +0000
            Re: Complex square root of -1 : zsqrt(-1) mhx@iae.nl (mhx) - 2024-08-28 17:39 +0000
              Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 19:38 +0000
                Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 19:49 +0000
                Re: Complex square root of -1 : zsqrt(-1) mhx@iae.nl (mhx) - 2024-08-28 21:42 +0000
                Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 22:10 +0000
                Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 22:17 +0000
                Re: Complex square root of -1 : zsqrt(-1) mhx@iae.nl (mhx) - 2024-08-28 23:04 +0000
                Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-09-06 07:11 +0000
                Re: Complex square root of -1 : zsqrt(-1) minforth@gmx.net (minforth) - 2024-09-06 08:14 +0000
                Re: Complex square root of -1 : zsqrt(-1) minforth@gmx.net (minforth) - 2024-09-06 08:20 +0000
                Re: Complex square root of -1 : zsqrt(-1) melahi_ahmed@yahoo.fr (ahmed) - 2024-08-28 21:45 +0000
  Re: Complex square root of -1 : zsqrt(-1) Krishna Myneni <krishna.myneni@ccreweb.org> - 2024-08-25 14:08 -0500
    Re: Complex square root of -1 : zsqrt(-1) Krishna Myneni <krishna.myneni@ccreweb.org> - 2024-08-25 14:16 -0500

csiph-web