14 October 2014, 17:53 | #1 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 725
|
calc-2.12.4.13
I've cross-compiled calc and here it is:
Binary (it should probably run on anything >=2.0, lightly tested on emulated A1200) You'll need ixemul.library. Also, type 'stack 50000' prior to running it from shell, or you'll get crashes. Source code I use this to make it. Code:
make CC=m68k-amigaos-gcc AR=m68k-amigaos-ar BLD_TYPE=calc-static-only RANLIB=m68k-amigaos-ranlib -f Makefile.alkis Code:
calc-static C-style arbitrary precision calculator (version 2.12.4.13) Calc is open software. For license details type: help copyright [Type "exit" to exit, or "help" for help.] calc-static: Cannot open bindings file "bindings", fancy editing disabled. ; 2^127 170141183460469231731687303715884105728 ; 2^1270 203279925677039044568852350143829795676079340766927828228888913093820 46991549531832055155159633445673520354714754455093342546027828756767398710755 08921351711508619044802582098783824872980778037201749886825720666252283921317 88056227870361355164809771322897439166233609932390948926333117278637203747869 50784857555121490508830130270381813931558650152443104953490040458438887804107 751424 ; pi() 3.14159265358979323846 ; epsilon(1e-50) 0.00000000000000000001 ; pi() ~3.14159265358979323846 ; display(120) 20 ; pi() 3.14159265358979323846264338327950288419716939937511 ; epsilon(1e-120) 0.00000000000000000000000000000000000000000000000001 ; pi() 3.1415926535897932384626433832795028841971693993751058209749445923078 16406286208998628034825342117067982148086513282306647 ; |
14 October 2014, 19:29 | #2 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Any ideas where I can get version 48+ of ixemul.library?
|
14 October 2014, 22:06 | #4 | |
dev
|
Quote:
I will definitely study this source carefully |
|
15 October 2014, 17:11 | #5 | |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 725
|
Quote:
I was very lucky with it. The source almost didn't need any modifications. (I just had to rename a variable cause it was conflicting with something in m68k-amigaos-as assembler). Hats off to the original coders for that! All the 'effort' (if you can call it that) went into making the makefile work. |
|
15 October 2014, 20:09 | #6 | |
dev
|
Quote:
I also considered to use the library part of Calc (qmath and zmath) but it really seemed like a waste of effort Back to planning mode |
|
17 October 2014, 22:28 | #7 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,855
|
I've been thinking about integrating the mapm arbitrary precision library with lua. Both compile fine on my A1200 with SASC6.58, so maybe I can get it to work.
|
18 October 2014, 16:03 | #8 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,855
|
Well, that proved to be much easier than I thought. Now I have a lua interpreter with integrated arbitrary precision floating point math I'll release it this weekend.
|
18 October 2014, 16:12 | #9 |
Registered User
Join Date: Dec 2010
Location: Athens/Greece
Age: 53
Posts: 725
|
Cool
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Final Calc wanted | AlfaRomeo | request.Apps | 5 | 05 November 2016 22:45 |
Chessboard speed calc? | h0ffman | Coders. General | 4 | 14 September 2011 08:31 |
|
|