Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Simple Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110940] Re: Simple Question
  • From: telefunkenvf14 <rgorka at gmail.com>
  • Date: Mon, 12 Jul 2010 07:22:33 -0400 (EDT)
  • References: <i1998f$pu8$1@smc.vnet.net> <i1c5q0$cb6$1@smc.vnet.net>

On Jul 11, 5:18 am, Joseph Gwinn <joegw... at comcast.net> wrote:
> In article <i1998f$pu... at smc.vnet.net>, KFUPM <hussain.alqaht... at gmail.com>
> wrote:
>
> > Dear All
>
> > Is it possible in Mathematica to generate a stand-alone code that
> > doesn't require Mathematica to exist for execution. I have done this
> > in Fortran and wondering if this exists in Mathematica.
>
> Mathematica function CForm[] will generate C code, but there are restrictions.  
> Specifically, CForm will not expand built-in functions like FindRoot.  But I
> have used CForm to generate the blob of code needed to perform vector and matrix
> computations in embedded processors too small and too odd for Mathematica
> to run on, and/or where Mathematica is itself far too slow.
>
> The real reason to use CForm here was to cut down on coding errors in a messy
> bit of coordinate-transform code.
>
> Joe Gwinn

Joe:

It would be really cool if you could write a simple tutorial and share
it in the Wolfram Library. I too have wondered how CForm[] might fit
into Mathematica development workflow and it sounds like your experience could
be a valuable resource to learn from.

-RG


  • Prev by Date: Why Evaluate[Defer[1+1]] does not return 2 ?
  • Next by Date: Re: multivariate interpolation
  • Previous by thread: Re: Simple Question
  • Next by thread: how to create a mathematica package