Mathematica code with C + HPGCC



#2

If anyone here use HPGCC, can you tell, if we can use programs in Mathematica from C?

I guess it is too much to ask, I am just curious.


#3

Sujith,

I don't know if this is possible but I doubt it. We would have to port the Mathematica programs, along with Mathematica itself, to the calculator and then call the programs from within C code. I can't imagine that the calculator has enough memory for that.

Dave

#4

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 C-Code 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.


#5

I know this is asking for too much on a small device with such a limited resource. Anyway you can do a **lot** with C programming alone, and it makes it worthy.

What happened to HPGCC? Is it still under active development?


Possibly Related Threads…
Thread Author Replies Views Last Post
  HP PRIME: APP program code DISAPPEARS !! Joseph Ec 0 1,250 11-25-2013, 11:35 AM
Last Post: Joseph Ec
  [OT] Mathematica free for Raspberry PI BruceH 32 8,527 11-23-2013, 05:24 AM
Last Post: Nick_S
  Where to the 32-bit version of User Code Utiltiy for HP-41 ? Olivier (Wa) 2 1,571 09-26-2013, 01:55 AM
Last Post: Olivier (Wa)
  A HP42S Code Editor Andreas 9 2,910 09-22-2013, 03:17 AM
Last Post: Andreas
  Dynamic Gaussian Quadrature code in Excel VBA Namir 4 1,803 07-30-2013, 07:37 PM
Last Post: Namir
  HP-65 Morse Code Dan Lewis 7 2,409 01-29-2013, 05:22 PM
Last Post: Mike T.
  [WP34s] undefined OP-code fhub 21 5,049 04-28-2012, 04:09 AM
Last Post: Marcus von Cube, Germany
  32-bit version of User Code Utiltiy for HP-41 MichaelG 4 1,802 02-08-2012, 07:12 AM
Last Post: MichaelG
  Interest in 32-bit version of User Code Utiltiy for HP-41 MichaelG 16 4,155 01-30-2012, 02:01 PM
Last Post: MichaelG
  HP-41 printer interface question. (To the M-code gurus out there) Diego Diaz 2 1,406 01-29-2012, 12:18 PM
Last Post: Diego Diaz

Forum Jump: