Recent

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

MSABC

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

  • Hero Member
  • *****
  • Posts: 678
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: scientific math in FP?
« Reply #1 on: February 05, 2019, 09:06:42 pm »
-ASB: https://www.BrainWaveCC.com/

Lazarus v2.2.7-ada7a90186 / FPC v3.2.3-706-gaadb53e72c
(Windows 64-bit install w/Win32 and Linux/Arm cross-compiles via FpcUpDeluxe on both instances)

My Systems: Windows 10/11 Pro x64 (Current)

srvaldez

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

MSABC

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

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
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: 46
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


 

TinyPortal © 2005-2018