(08-19-2022, 09:54 PM)Jack Wrote: Hi Steve
your bten$ routines are fast considering that it's string based, how would you call the Sqrt function?
BTEN wasn't mine; it was something someone else worked up ages ago. Dark...something... Darkstar, perhaps? You might remember him from the old .net forums of Galleons (not .org of Fellippes). He was the guy perpetually working on a space game with the idea of a 3d array storing every point in the universe. I was never certain exactly how you'd store such vast amounts of data in an array, but he claimed to have it all sorted out. Unfortunately, he disappeared back when the forums collapsed the first time at .net.
From what I recall, SQRT worked off the first parameter only, with the last parameter being ignored.
result$ = BTEN$("2", "SQRT", "ignored") -- IIRC.
I don't recall how you set a limit to how many digits to generate. I remember Dark once posted several thousand digits to the SQRT of 2, or something once, where he had it output the answer to a file as it calculated the result. You'll just have to skim the code and play with it, I'm afraid. I didn't write BTEN, and haven't used it for years. Last version of QB64.bas with it inside was back around v1.1, IIRC, and that was when Galleon was still doing releases!