I want to call Mathematica from a C program. Suppose I have two numbers x = 2
and y = 3
. I want to define x
and y
in a C program and call Mathematica, then I want Mathematica to do the sum and return the result.
I use Linux. I would like to know how should I use MathLink here - what should be written in a Mathematica file, a C file, and the compiler command. I would like a complete program.
Comments
Post a Comment