I have a SymPy expression in Python and I would like to copy and paste it into a Java source code. Problem is that there’s a different notation for exponentiation:
- Java uses
Math.pow(a,b)
; - Python uses
a**b
.
So my question is: Is there a way how to print the SymPy expression in the “Java format”?