- To: mathgroup at smc.vnet.net
- Subject: [mg70086] Re: Deriviation
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Tue, 3 Oct 2006 06:16:26 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <firstname.lastname@example.org>
Karsten Ohme wrote:
> I have the following problem, e.g. I derive a function like:
> f[x] = x^2;
> D[f[x], x]
> 2 x
> Quite well, but now I want to use it in my own application, so I look
> for a free library written in Java (or C) which can do also a symbolic
> derivation outside Mathematica. Is there something like this?
> Thanks, Karsten
Within a Mathematica notebook, you can use functions such as CForm 
to get a get a translation of the Mathematica expression to a C expression:
f[x] = x^2;
You can also ask Mathematica to process a source or document file
written, say in C or any other languages, that includes Mathematica
code, with the Splice function. See  for an example in C.
 /The Mathematica Book/, Section 1.11.9, "Splicing Mathematica Output
into External Files"
Prev by Date:
Next by Date:
Re: Input, output troubles me ...
Previous by thread:
Next by thread:
Re: Linear regression, error on both vaules x and y