28 October 2014, 23:38 | #21 | ||
dev
|
Quote:
Quote:
A crossbuild of vbcc is actually include in the toolchain. And probably you are right about auto opening the math libs. I would prefer not to maintain a static math library and I am very willing to find another solution. Reference in code looks like this (rfunc.h): Code:
#ifdef NATIVEMATH #include <math.h> #endif extern int finite(double x); extern double floor(double x); extern double ceil(double x); extern double exp(double x); extern double sqrt(double x); extern double cbrt(double x); extern double log(double x); extern double log10(double x); extern double cos(double x); extern double sin(double x); extern double tan(double x); extern double acos(double x); extern double asin(double x); extern double atan(double x); extern double cosh(double x); extern double sinh(double x); extern double tanh(double x); extern double acosh(double x); extern double asinh(double x); extern double atanh(double x); extern double pow(double x, double y); extern double fmod(double x, double y); extern double atan2(double y, double x); extern double hypot(double x, double y); extern double log1p(double x); extern double expm1(double x); extern double scalbn (double x, int n); Last edited by cla; 28 October 2014 at 23:56. |
||
28 October 2014, 23:56 | #22 |
dev
|
I use Kubuntu 14.04 LTS as building host. Frode Solheim provides binary files for Linux:
http://fs-uae.net/2014/01/23/gcc-com...r-amigaosm68k/ |
29 October 2014, 06:00 | #23 | |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Quote:
|
|
29 October 2014, 12:01 | #24 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
Quote:
Only problem is the different naming scheme of support functions (like 64-bit arithmetics or soft float). You would have to write stub-functions to make that link. |
|
09 November 2014, 10:13 | #25 |
dev
|
The Amiga platform (pre 4.0) is obviously suffering from lack of support. My original goal was to make an application which people would be able to build themselves and I thought GCC could be a solution. But since the last public available m68k version of GCC is 2.95.3 which (for good reasons) does not support c99 math I don't see how it is possible. The only solution to the c99 problem would be either some kind of hack or to buy a commercial product like StormC4, and then people wont be able to build the application themselves anyway.
For this reason future version of amath will not include source code (no one will be able to build it) and I will purely focus on the end-user experience. I will still be releasing the source as an independent package but it will only be for "educational" purposes. And after all everything I supply is free of charge. Last edited by cla; 09 November 2014 at 10:19. |
23 March 2015, 11:32 | #26 |
dev
|
Updated to 1.5.6
Most bugs seems to be gone. |
18 April 2015, 03:54 | #27 | |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
Both of these are extremely portable, and compile properly with SASC 6.58. Cephes is quite old, though, and has some pre-C89 crud in it (old style function prototypes which SASC doesn't like). It's also very easy to use only a subset of the Cephes files, and not compile the complete libraries. I'm currently using Cephes' 384 bit floats with Lua 5.3.0, and it works great. Cephes: https://github.com/jeremybarnes/cephes Another alternative is to simply implement the math functions that are in C99 but that are missing in C89 yourself. For example, log2(x) is as easy as doing log(x) / log(2), where you can make log(2) a constant (you do log for any base by doing log(x) / log(base)). Another example is acosh. You can do that by doing log(x + (x ^ 2 - 1) ^ 0.5). Most of these will be very easy, and can be easily found by googling. Try googling 'mathworks asinh' to get the formula for asinh. For a calculator there is absolutely no need to be stuck with C99 if you don't truly need it Last edited by Thorham; 18 April 2015 at 04:07. |
|
18 April 2015, 10:52 | #28 |
dev
|
Hi Thorham,
I took a look a at github. Cephes seems quiet interesting. Lua I don't know much about - actually I only know it from the plugin system in World of Warcraft About the level in amath: It is intended to be an entry level math program targeted at primary school and high school students/pupils. I try to keep the syntax as close to the one used in mathematics. Amath is not targeted at professionals and never will be. Advanced statistical and mathematical software solutions like SPSS, MatLab and Marple fulfill the needs of those people. And lets face it, most common people don't understand math anyway and will be perfectly happy using a pocket calculator with buttons. The next releases will focus on portability and I will definitely take a closer look at Cephes. Thanx. |
18 April 2015, 23:37 | #29 | ||
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
Quote:
Quote:
|
||
20 April 2015, 20:30 | #30 | ||
dev
|
Quote:
Quote:
|
||
20 April 2015, 20:33 | #31 | |
dev
|
Quote:
|
|
20 April 2015, 20:37 | #32 | |
dev
|
Quote:
http://git.netsurf-browser.org/toolchains.git/ I haven't been able to get it work though. I think building on Debian is supported by the build scripts. |
|
20 April 2015, 22:05 | #33 |
Computer Nerd
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 48
Posts: 3,839
|
I actually meant the functionality and interactivity. I find I can often get some good ideas for functions and options by looking at peecee programs. Peecee programs are often ahead of equivalent Amiga programs, but functions can often be copied. The way it looks doesn't matter (who cares if a powerful calculator looks boring).
|
23 December 2017, 20:26 | #34 |
dev
|
Package updated to 1.8.3. Now runs on several systems and have its own page:
https://amath.innolan.net |
30 December 2017, 13:58 | #35 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,356
|
Have you considered using ARexx and the rexxmathlib.library? They offer bignum support, high precision and transcendental functions and are part of every AmigaOS installation. http://wiki.amigaos.net/wiki/AmigaOS...rary_Functions
|
30 December 2017, 15:00 | #36 | |
dev
|
Quote:
Also, the 1.8.3 release for AmigaOS 68k is apparently defunct. Just realized it yesterday. If anyone is reading this, use 1.8.0 instead. Sorry about the troubles is might have caused you. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
BPM calculator for Octamed? | lordofchaos | request.Apps | 4 | 29 May 2013 19:46 |
Speccy on Ti-89 calculator | Fred the Fop | Retrogaming General Discussion | 3 | 27 January 2007 02:30 |
Vintage 1970's Commodore Calculator | Steve | Retrogaming General Discussion | 7 | 05 February 2003 10:30 |
|
|