[Jprogramming] Square root error
Henry Rich
henryhrich at gmail.com
Sun Dec 13 17:56:59 UTC 2020
Cube root uses logarithms; square root (including ^&0.5) does not.
Henry Rich
On 12/13/2020 12:41 PM, Skip Cave wrote:
> Strange errors in the root function:
>
>
> JVERSION
>
> Engine: j902/j64avx2/windows
>
> Beta-n: commercial/2020-11-21T12:09:32
>
> Library: 9.02.06
>
> Qt IDE: 1.8.7/5.12.7(5.12.7)
>
> Platform: Win 64
>
> Installer: J902 install
>
> InstallPath: c:/users/skip/j902
>
> Contact: www.jsoftware.com
>
>
> 9!:11 [20 NB. Set print precision
>
>
> 899^2
>
> 808201
>
> %: 808201
>
> 899
>
> 808201^1r2
>
> 898.99999999999977263
>
> 2%: 808201
>
> 898.99999999999977263
>
>
> Cube root
>
>
> 899^3
>
> 726572699
>
> 3%: 726572699
>
> 898.99999999999977263
>
> 726572699^1r3
>
> 898.99999999999977263
>
> Why the small error in some forms of square root?
>
>
>
> Skip Cave
> Cave Consulting LLC
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
--
This email has been checked for viruses by AVG.
https://www.avg.com
More information about the Programming
mailing list