NTL High-precision mathematical calculation

Post your working scripts, libraries and tools.
User avatar
thqby
Posts: 427
Joined: 16 Apr 2021, 11:18
Contact:

NTL High-precision mathematical calculation

03 Oct 2021, 23:29

NTL is a high-performance, portable C++ library providing data structures and algorithms for manipulating signed, arbitrary length integers, and for vectors, matrices, and polynomials over the integers and over finite fields.

This is the NTL wrapper for evaluating integer and floating-point expressions.

example:

Code: Select all

MsgBox(
	'0.1+0.7*0.3/0.5+0.3=' NTLCalc('0.1+0.7*0.3/0.5+0.3') '(NTL)   ' (0.1 + 0.7 * 0.3 / 0.5 + 0.3) '(ahk)`n'
	'99999999999999999999999911111111111111111111111*11111111111111111111111=' NTLCalc('99999999999999999999999911111111111111111111111*11111111111111111111111')
)
/*
 * 0.1+0.7*0.3/0.5+0.3=0.82(NTL)   0.82000000000000006(ahk)
 * 99999999999999999999999911111111111111111111111*11111111111111111111111=1111111111111111111111099012345679012345679012354320987654320987654321
 */
Github
Attachments
NTLCalc.7z
(87.27 KiB) Downloaded 82 times
User avatar
smrt1
Posts: 34
Joined: 27 Mar 2022, 04:47

Re: NTL High-precision mathematical calculation

03 Apr 2022, 10:32

This is especially usefull for big numbers.
Thank you ;)

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: CoffeeChaton, Marium0505 and 9 guests