Lazarus
Programming => Packages and Libraries => Topic started by: stephanweber on March 19, 2019, 01:27:48 pm

Hi,
in the internet you can find many great math libs, but for these special topics I for nothing yet for Pascal. Does anybody has a hint? Or maybe a really good C++ (or c#, python, java, etc.) to Pascal converter?
Bye Stephan

"Compatible with FreePascal" > http://www.alglib.net/download.php#delphi

Check mrmath library, it works on Lazarus and it is superfast.
https://github.com/mikerabat/mrmath

Thanks! These units work quite fine.
However, the most complete unit seems to be AMath, BUT I cannot compile it under freepascal, there are some asm statements, unfortunately.
Has anybody made AMath working under Lazarus?
Bye Stephan

Hi Stephan,
I assume you mean the AMath unit of Wolfgang Ehrhardt (http://www.wolfgangehrhardt.de/misc_en.html#amath)?
If so, what's your target environment? The website explicitly states
"The archive amath_20181127.zip contains units for accurate mathematical methods without using multi precision arithmetic. Please note that the high accuracy can only be achieved with the rmNearest rounding mode; it decreases if other modes are used. AMath is designed for the 80bit extended data type, and therefore cannot be used with 64bit code on 64bit system (for these use the corresponding DAMath package). More information can be found on the separate introduction page."
Maybe you need to take a look at DAMath instead.
Cheers,
MathMan

Hi Stefan!
I have quite recently implememnted in Pascal the COBYLA algothithm for LMath library (https://sourceforge.net/projects/lmathlibrary/).
It is not yes officially released, but is already in SVN repository. So, have a look at it. See uCobyla unit in uOptimum package.
Best regards!
Viatcheslav