Re: Mathematica code with C + HPGCC Message #3 Posted by Ralf Fritzsch on 29 Sept 2010, 7:25 a.m., in response to message #1 by Sujith Abraham
Quote:
If anyone here use HPGCC, can you tell, if we can use programs in Mathematica from C?
At least the naming conventions are a bit different on both sides. A quick lookup involving the result of Integrate[1/(1 + x^3), x] and piping it through CForm in Mathematica showed, that Mathematica uses ArcTan, Sqrt, Log, and Power, whereas HPGCC prefers atan, sqrt, and log. Trying to compile Mathematica generated CCode within HPGCC thus yields messages like
warning: implicit declaration of function 'ArcTan'
warning: implicit declaration of function 'Sqrt'
warning: implicit declaration of function 'Log'
warning: implicit declaration of function 'Power'
but nevertheless compiles something. But this is the opposite direction compared to your question :(
Kind regards, Ralf.
