Recent

Author Topic: Math package for nonlinear constrained optimization, low-discrepancy sampling?  (Read 3121 times)

stephanweber

  • New Member
  • *
  • Posts: 46
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

sstvmaster

  • Sr. Member
  • ****
  • Posts: 299
"Compatible with FreePascal" -> http://www.alglib.net/download.php#delphi
greetings Maik

Windows 10,
- Lazarus 2.2.6 (stable) + fpc 3.2.2 (stable)
- Lazarus 2.2.7 (fixes) + fpc 3.3.1 (main/trunk)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 272
Check mrmath library, it works on Lazarus and it is superfast.
https://github.com/mikerabat/mrmath

stephanweber

  • New Member
  • *
  • Posts: 46
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

MathMan

  • Sr. Member
  • ****
  • Posts: 325
Hi Stephan,

I assume you mean the AMath unit of Wolfgang Ehrhardt (http://www.wolfgang-ehrhardt.de/misc_en.html#amath)?

If so, what's your target environment? The website explicitly states

"The archive amath_2018-11-27.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 80-bit extended data type, and therefore cannot be used with 64-bit code on 64-bit 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

glorfin

  • Full Member
  • ***
  • Posts: 148
  • LMath supporter
Hi Stefan!

I have quite recently implememnted in Pascal the COBYLA algothithm for LMath library (https://sourceforge.net/projects/lmath-library/).
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

 

TinyPortal © 2005-2018