MathGroup Archive 2003

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

Search the Archive

Re: Mathematica to C

  • To: mathgroup at smc.vnet.net
  • Subject: [mg43370] Re: Mathematica to C
  • From: Bill Rowe <listuser at earthlink.net>
  • Date: Tue, 26 Aug 2003 07:13:51 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

On 8/25/03 at 4:10 AM, mathma18 at hotmail.com (Narasimham G.L.) wrote:

> It is learnt that any expression or program written in Mathematica can
> be converted to C or Fortran programming languages, as
> well as MathML, TeX, HTML, and Java. 
> How is actually conversion  into C or C++  done ? 

In[1]:=
?CForm

"CForm[expr] prints as a C language version of expr."*
  Button[Moreâ?¦, ButtonData :> "CForm", Active -> True, 
   ButtonStyle -> "RefGuideLink"]

In[2]:=
x^3+3 x +3 +1//CForm

Out[2]//CForm=
4 + 3*x + Power(x,3)


  • Prev by Date: Re: Those Pesky Minus Signs
  • Next by Date: Re: Mathematica to C
  • Previous by thread: Mathematica to C
  • Next by thread: Re: Mathematica to C