Author Topic: An astronomical number  (Read 7203 times)

raymond

  • Member
  • ***
  • Posts: 327
    • Raymond's page
Re: An astronomical number
« Reply #60 on: March 05, 2022, 02:13:45 PM »
In order to get 20 digit accuracy for 2^64, I may need to retain the 40 most significant digits of each computation. The timing may then increase by a factor of 4.

By retaining the 36 most significant digits of each computation, I get 19 digit accuracy for 2^64. The timing was 0.5 ms.
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/

raymond

  • Member
  • ***
  • Posts: 327
    • Raymond's page
Re: An astronomical number
« Reply #61 on: March 07, 2022, 01:59:15 PM »
One minor modification, rounding the 37th digit before cutting it to 36 digits, resulted in at least the 20-digit accuracy for 2^64. Still takes 0.5 ms.

Attached is the latest (and probably last) source file for the record on this project.
« Last Edit: March 19, 2022, 05:58:21 AM by raymond »
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/

jack

  • Member
  • **
  • Posts: 231
Re: An astronomical number
« Reply #62 on: March 07, 2022, 03:43:24 PM »
 :thumbsup:

jack

  • Member
  • **
  • Posts: 231
Re: An astronomical number
« Reply #63 on: March 07, 2022, 04:02:00 PM »
Raymond, how do you run your program?
I assembled it ok but when I run it all I get to see is this message box
(I included umdtoa.asm from your fpu library and it assembles without error)
---------------------------
Error
---------------------------
284
---------------------------
OK   
---------------------------
the number varies between runs

raymond

  • Member
  • ***
  • Posts: 327
    • Raymond's page
Re: An astronomical number
« Reply #64 on: March 08, 2022, 05:22:18 AM »
Hi jack

You must have a more modern/faster computer than mine to show a computation speed of 0.28 ms. The reason for the "error" title, is that I don't usually bother to give a title to such message boxes; so it uses the 'default' title!!!! :skrewy:
Whenever you assume something, you risk being wrong half the time.
http://www.ray.masmcode.com/

daydreamer

  • Member
  • *****
  • Posts: 2399
  • my kind of REAL10 Blonde
Re: An astronomical number
« Reply #65 on: March 10, 2022, 05:10:59 AM »
One minor modification, rounding the 37th digit before cutting it to 36 digits, resulted in at least the 20-digit accuracy for 2^64. Still takes 0.5 ms.

Attached is the latest (and probably last) source file for the record on this project.
great :thumbsup:
I tried make SSE2 (real8s) version earlier,wonder if the rounding up/down or to integer works best with the formula?
what about windows asm version for this:
https://rosettacode.org/wiki/Barnsley_fern
my none asm creations
http://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding