3 ms·
Nice to have all that power on the command line. The system uses the notation with square brackets for function calls, e.g. Sin[x], so ppl familiar with Mathema
by ivan_ah 7y ago
Nice to have all that power on the command line. The system uses the notation with square brackets for function calls, e.g. Sin[x], so ppl familiar with Mathematica will feel right at home.
The SymPy Unicode output mode also does a pretty good job on the command line. You can try here https://live.sympy.org https://live.sympy.org, for example https://live.sympy.org/?evaluate=(1%2F2)%2F3%20%2B%202%2Fsqrt(sin(pi%2F2)**2%2Bcos(pi%2F2)**2)%20%2B%20floor(E%2F2)%0A%23--%0A(19%2F6).evalf()%0A%23--%0A https://live.sympy.org/?evaluate=(1%2F2)%2F3%20%2B%202%2Fsqr... (see Settings on the side to turn off LaTeX rendering)
- pmkary 7y agoYeah but it wasn't the prettiest. What I learned through my experiments was that not all of the notations render beautifully and so I chose a subset that is pretty and kept the rest rendered just as functions. This honestly wasn't a try to have full mathematical notation rendering, but rather my own preferences of notation rendering. Yet, I hope you enjoy it :D