Forum > General

Octave/Matlab/Scilab version in free pascal?

(1/1)

**Weiss**:

I have a feeling lately, that I am doing pretty much same thing I was doing in Octave, but now in Pascal. And I am naturally wondering, haven't anyone tried building an Octave version, based on FPC? Google doesn't know what I am talking about.

**MarkMLl**:

(GNU) Octave is written in C++, FORTRAN and so on and is to a large extent an encapsulation of older work. I don't think it would really be viable to transcribe it to Pascal.

I think that what you're really talking about is embedding Octave (or at least some of its functionality) in your own program, hence https://stackoverflow.com/questions/9246444/how-to-embed-the-gnu-octave-in-c-c-program would appear to be a good starting point.

/However/, the API appears to be C++ rather than C, so you're going to need the opinion of somebody familiar with calling C++ from FPC to verify that.

MarkMLl

**wp**:

--- Quote from: Weiss on September 12, 2022, 05:14:06 am ---I have a feeling lately, that I am doing pretty much same thing I was doing in Octave, but now in Pascal.

--- End quote ---

What does "doing" mean here? Doing numerical math? There is the numlib package with a lot of numerical math routines (equation solving, special functions, matrix/vector operations, linear fitting, ...): https://wiki.lazarus.freepascal.org/NumLib_Documentation.

Or use third-party libraries such as LMath (https://sourceforge.net/p/lmath-library/code/HEAD/tree/LMath/), or Wolfgang Ehrhardt's code (https://github.com/Alexey-T/Wolfgang_Ehrhardt_codes), or JediMath (https://sourceforge.net/projects/jedimath/)

**Weiss**:

--- Quote from: wp on September 12, 2022, 11:50:41 am --- Doing numerical math? There is the numlib package with a lot of numerical math routines (equation solving, special functions, matrix/vector operations, linear fitting

--- End quote ---

Yes, numerical math, like cleaning raw data, regression, polynomial curve fitting etc. Integration. I use some functions from numlib and math. Would be nice to be able to declare arrays with ":" notation as well.

Navigation

[0] Message Index