amiga-news DEUTSCHE VERSION
.
Links| Forums| Comments| Report news
.
Chat| Polls| Newsticker| Archive
.

[Login] [Register] [Forgot your password?]

< Next messagePrior message >
19.Oct.2014
Amiga.org (Forum)


Lua-Interpreter with arbitrary-precision arithmetic
Version 5.2.3 of the interpreter for the programming language Lua was copmpiled by 'Thorham' using arbitrary-precision arithmetic-support.

AmigaOS 3.x and a 68020-processor are required. It does not require a FPU or the ixemul.library. Loading dynamic libraries still was not implemented in this version.

The programm can be started using the Workbench or the command line. In the command line you have to add the parameter "-l mapm" in order to use the maths library for the arbitrary-precision arithmetic.

Example code:
mapm.digits(100)
a=mapm.sqrt(12345)
b=mapm.sqrt(54321)
print(a*b)
c=mapm.number(1)
d=mapm.number(3)
e=c/d
print(e*d)
Commands like mapm.sin or mapm.cos also can be used.

Download site (snx) (Translation: dr)

[News message: 19. Oct. 2014, 06:53] [Comments: 0]
[Send via e-mail]  [Print version]  [ASCII version]
< Next messagePrior message >

.
Masthead | Privacy policy | Netiquette | Advertising | Contact
Copyright © 1998-2024 by amiga-news.de - all rights reserved.
.