OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

Origin C Programming

Origin C supports a nearly complete ANSI C language syntax as well as a subset of C++ features, including built-in, user-defined, and DLL-extended classes, and a few C# features including Collections, and the using and foreach commands. In addition, Origin C is "Origin aware". This means that Origin objects such as worksheets and graphs are mapped to classes in Origin C, allowing direct manipulation of these objects and their properties from Origin C.

Origin C also allows calling functions exported from user-created or third-party dynamic link libraries (DLLs). This mechanism allows Origin C program to directly call NAG C library functions. In fact, Origin 8 is shipped with the entire NAG MARK VII numerical library, thus allowing user to perform advanced numerical computation.

In addition, Origin C has built-in vector and matrix support including direct arithmetic, such as for example:

 
vector a = {0.23, 1.75, -0.045, 0, 1.13};
 
vector b;
 
// direct vector arithmetic, and calling double functions
 
b = sin(a) / (a + fabs(a));

Origin C can be used to "drive", or "automate" other applications via the Windows' standard COM/automation client-server interaction. Applications that are Automation servers (such as, for example, all MS Office applications) can be accessed by writing COM client code inside Origin C. Origin also can function as an COM server whereby other applications communicate with Origin using methods and properties exposed by Origin. Data can be programmatically transferred back and forth, for example, between Origin and Excel sheets.