Re: executing 'ProductLog' from an external program (C code or shell)
- To: mathgroup at smc.vnet.net
- Subject: [mg38339] Re: executing 'ProductLog' from an external program (C code or shell)
- From: Matt Flax <flatmax at ieee.org>
- Date: Thu, 12 Dec 2002 01:36:38 -0500 (EST)
- References: <20021211035217.GB11986@ee.unsw.edu.au> <20021211063651.GA12870@ee.unsw.edu.au>
- Sender: owner-wri-mathgroup at wolfram.com
I have found the arguments to start with under Unix : lp=MLOpenString(ep, "-linkname \"math -mathlink\"", &err); problem solved. thanks Matt On Wed, Dec 11, 2002 at 05:36:51PM +1100, flatmax wrote: > Hi, > I have found the example 'factor.c'. > > Unfortunatly there are problems with running the program ... something > to do with 'MLOpenArgv' ... when the program is run it requests : > 'Create link:' > > thanks > MAtt > > On Wed, Dec 11, 2002 at 02:52:17PM +1100, flatmax wrote: > > Hello, > > I have the following in mathematica : > > x[z_]:=1000Log[10]-ProductLog[z] > > > > I would like to be able to execute this from a shell or C code. CForm > > just outputs : > > CForm[1000Log[10] - ProductLog[z]] > > 1000*Log(10) - ProductLog(z) > > > > Is it possible to compile 'ProductLog' to a C library or even an > > executable which I can then use in C code ? > > > > thanks > > Matt > > -- > > http://mffm.darktech.org > > > > WSOLA TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/ > > FFTw C++ : http://mffmfftwrapper.sourceforge.net/ > > Vector Bass : http://mffmvectorbass.sourceforge.net/ > > Multimedia Time Code : http://mffmtimecode.sourceforge.net/ > > -- > http://mffm.darktech.org > > WSOLA TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/ > FFTw C++ : http://mffmfftwrapper.sourceforge.net/ > Vector Bass : http://mffmvectorbass.sourceforge.net/ > Multimedia Time Code : http://mffmtimecode.sourceforge.net/ -- http://mffm.darktech.org WSOLA TimeScale Audio Mod : http://mffmtimescale.sourceforge.net/ FFTw C++ : http://mffmfftwrapper.sourceforge.net/ Vector Bass : http://mffmvectorbass.sourceforge.net/ Multimedia Time Code : http://mffmtimecode.sourceforge.net/