Recent

Author Topic: scientific math in FP?  (Read 2045 times)

MSABC

  • New member
  • *
  • Posts: 35
scientific math in FP?
« on: February 05, 2019, 07:53:16 pm »
Hi All,

Is there something like the GNU-GSL in Free Pascal?
I'm looking for statistical functions like inverse beta distribution.

Some-when, I re-implemented some functions from C, but don't
want to reinvent the wheel the nth time.

regards

M. Schäfer

ASBzone

  • Full Member
  • ***
  • Posts: 226
  • Automation leads to relaxation...
    • BrainWaveCC Utilities
Re: scientific math in FP?
« Reply #1 on: February 05, 2019, 09:06:42 pm »
-ASB: https://www.BrainWaveCC.com

Lazarus v2.0.3 r61485 / FPC v3.2.0-beta-r42306 (via FpcUpDeluxe) -- Windows 64-bit install w/32-bit cross-compile
Primary System: Windows 10 Pro x64, Version 1903 (Build 18362.116)
Other Systems: Windows 10 Pro x64, Version 1809 or greater

srvaldez

  • New member
  • *
  • Posts: 5
Re: scientific math in FP?
« Reply #2 on: February 05, 2019, 09:08:21 pm »

MSABC

  • New member
  • *
  • Posts: 35
Re: scientific math in FP?
« Reply #3 on: February 05, 2019, 09:16:41 pm »

I just took a quick look at DMath l looks good.
I will also check AMath.

Thanks for help

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7250
Re: scientific math in FP?
« Reply #4 on: February 05, 2019, 10:23:39 pm »
There is a inverse regularized incomplete beta function in numlib. Afaik not for the normal beta function.

Have a look, they are in unit "spe" in the numlib package

stephanweber

  • New member
  • *
  • Posts: 37
Re: scientific math in FP?
« Reply #5 on: April 03, 2019, 08:58:34 am »
Hi, do you achieved a full success? In Pascal I was able to create all functions (pdf, cdf, inverse cdf) for many somewhat difficult functions (like chi2, student-t, etc.), BUT still I found no solution for inverse cdf for beta distribution and e.g. generalized Gaussian type1 or generalized T. Has anybody also these?
I found some math units which should have the required functions, but none worked so far for inverse cdfs.

Bye Stephan