Is there a clever way to export a Matrix of sympy symbols and the argument list to to a text (.py) file with scipy friendly syntax? The C and Fortran printers strip out the sympy syntax and replace it with the proper C or Fortran syntax, however the python printer assumes that sympy will be the using package.
In particular the python printer retains the Rational function and the Symbol class which are foreign to numpy. My problem involves a creation of a Jacobian (42x66 matrix with 201 parameters) as well as the Residual function of 42 equations, 66 degrees of freedom and 135 or so parameters. My current work around is to unwrap the matrix then write the matrix elements, arguments list, and residual elements as text strings and save as a .py file. Form the other file I use exec and lambda to make numpy friendly functions. I works but it is ugly. It is 9 lines with 42000 characters. lambdify has the option to use numpy or python.math libraries. Is this feature hidden somewhere and I simply missed it? V/R Scott -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.