New in Wolfram
Mathematica
8: SymbolicC
◄
previous
|
next
►
Software Development
C Preprocessor Support
You can generate C preprocessor statements to define numerical constants as computed by
Mathematica
.
In[1]:=
X
Needs["SymbolicC`"] CDefine[ToString[#], N[#]] & /@ Map[ToExpression, Select[Names["System`*"], MemberQ[Attributes[#], Constant] &]] // ToCCodeString
Out[1]=