Message Boards Message Boards

0
|
5256 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

How to convert an equation or formula written in Wolfram Language to SAS?

Posted 9 years ago

Is there anyone know if I can convert an equation or formula, which I created on Mathematica, to other programs, such as SAS or R. For example, how to convert an equation (d^6) ((ee - ff)^2) ((jj - kk)^2) on Mathematica to (d6)((ee - ff)2)((jj - kk)2), which will be run on SAS?

Thanks,

POSTED BY: genie kim
2 Replies

You can usually write simple programs that will do this for simple pieces of code. For "C" and "Fortran" there are functions for this called CForm and Fortran form. Usually the easiest way to do this is to call these functions and to make whatever minor adjustments distinguish the language you are using.

Alternatively, for more complicated computations, you might consider using the EmbedCode function.

POSTED BY: Sean Clarke

There is an approach in this MSE thread that should be adaptable to your needs.

POSTED BY: Daniel Lichtblau
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract