10-14-2022, 02:55 AM
That's the first program I tried on the new QB64PE v3.3.
Nice!
Question. I can do SQR() to get square roots. Any notation for nth roots like cube roots 4th roots, etc.?
It looks like it does decimal roots. If you don't have a method set up for nth roots yet, all you would need is your own notation like 3r() and a function to manipulate the equation as a decimal root. You know, the cube root of 27 is also 27 ^ .333..., etc. (Provided the rounding formula handles it correctly, which it looks like would require running the repeating portion out a certain number of decimals past the reporting decimal limit.)
Pete
Nice!
Question. I can do SQR() to get square roots. Any notation for nth roots like cube roots 4th roots, etc.?
It looks like it does decimal roots. If you don't have a method set up for nth roots yet, all you would need is your own notation like 3r() and a function to manipulate the equation as a decimal root. You know, the cube root of 27 is also 27 ^ .333..., etc. (Provided the rounding formula handles it correctly, which it looks like would require running the repeating portion out a certain number of decimals past the reporting decimal limit.)
Pete