Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
–1 vote

Hi guys,

I am currently looking for a way to copy some outputs, put them into mathematica and let mathematica solve the equations from the outputs.

But as far as I know, there is a method to obtain useful output in mathematica readable format: print(ex.mma_form()).

My latex in Cadabra outputs are too long or maybe too heavy, so the print(ex.mmaform()) results in making my cadabra crash.
Then I tried some simple expressions to use print(ex.mma
form()).
It worked out, showed the result it in Cadabra.
But I still can not copy and paste them, is there any simple short solution for this issue?

Best,
Yi

asked in General questions by (200 points)

1 Answer

+1 vote

If you click the expression, there is no feedback, but you can then paste into another application.

Alternatively, write your expressions into a file. Or use the map_mma functionality (only available if you build Cadabra from source yourself and pass -DENABLE_MATHEMATICA=ON to cmake).

answered by (61.8k points)

Dear Kasper,

Thanks a lot for the response.
I found a solution by export the expression into a tex file and then copy paste it into mathematica via "ToExpress" there. It worked out perfectly. Still nice to know other solutions!

Have a nice day!

...