From: KFUPM on 10 Jul 2010 03:59 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. Your help is appreciated. Regards, HMQ
From: Nasser M. Abbasi on 10 Jul 2010 06:32 On 7/10/2010 12:59 AM, KFUPM 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. > > Your help is appreciated. > > Regards, > > HMQ > Using a Mathematica player, one does not need Mathematica itself to run the code. Check WRI web site for more details on how to convert your code to run in a player : http://www.wolfram.com/products/player/ "Rather than just a reader, like Acrobat Reader, or a thin runtime, like Flash Player, Mathematica Player has the full Mathematica engine embedded right there--ready to make documents come alive or to power applets. (Of course, don't forget it can read notebooks too!) " If you mean to actually compile Mathematica code and generate a .EXE, then no. There is no such compiler for Mathematica. --Nasser
From: Bill Rowe on 11 Jul 2010 06:18 On 7/10/10 at 3:59 AM, hussain.alqahtani(a)gmail.com (KFUPM) wrote: >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. The answer greatly depends on precisely what it is you want to do. There are a couple of options. First, there is the Mathematica Player that will run Mathematica code without an installation of Mathematica. For details see Wolfram's web site. The other option would be export expressions as either CForm or FortranForm and use the appropriate compiler to create a stand alone executable. But be aware what can be done in this manner is limited. Expressions consisting of operations that have a direct analog in either C or Fortran can be exported in a form suitable for an external compiler. But specialized functions, such as say Integrate cannot be exported in a form useful to an external compiler.
From: Joseph Gwinn on 11 Jul 2010 06:18 In article <i1998f$pu8$1(a)smc.vnet.net>, KFUPM <hussain.alqahtani(a)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
From: telefunkenvf14 on 12 Jul 2010 07:22 On Jul 11, 5:18 am, Joseph Gwinn <joegw...(a)comcast.net> wrote: > In article <i1998f$pu...(a)smc.vnet.net>, KFUPM <hussain.alqaht...(a)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
|
Pages: 1 Prev: 3D view direction Next: How to *really* remove a symbol? |