Is there an easy way to convert Mathematica equations to R code? I have several equations that consist of dozens of terms with indices, superscripts, and Greek letters. For example, here is a small part of one equation in Latex format:
m_2_2= 48 b_1 c_2^2 d_1 \rho ^4+48 b_2 c_1^2 d_2 \rho ^4+216 b_2 c_1 c_2 d_1 \rho ^3+216 b_1 c_1 c_2 d_2 \rho ^3+96 b_1 c_2^2 d_1 \rho ^2+96 b_2 c_1^2 d_2 \rho ^2 + ...
I can copy from Mathematica as plain text, input text, latex or MathML, but how can I get any of these formats to work in R with all indexes, superscripts, and Greek? Unfortunately, the equations are so large that errors can occur when manually re-typing. Any suggestions?
source
share