3 ms·
Interesting. Quick question though: tau@eletron:~$ lax -c '((x-1) ** ((x-1)/(x+2)))/(y-z+k-e+w)' \frac{\sqrt[\left(\frac{x-1}{x+2}\right)]{\left(x-1\ri
by adsche 9y ago
Interesting. Quick question though:
tau@eletron:~$ lax -c '((x-1) ** ((x-1)/(x+2)))/(y-z+k-e+w)'
\frac{\sqrt[\left(\frac{x-1}{x+2}\right)]{\left(x-1\right)}}{y-z+k-e+w}
That does not make sense to me. Why do you use a root here? A root with that long of a degree just looks weird to me [1].
And even if, does the degree of the root not have to be inverted? I.e.:
x**(y/z) == \sqrt[z/y]{x}
[1] http://latex.codecogs.com/gif.latex?%5Cfrac%7B%5Csqrt%5B%5Cleft%28%5Cfrac%7Bx-1%7D%7Bx+2%7D%5Cright%29%5D%7B%5Cleft%28x-1%5Cright%29%7D%7D%7By-z+k-e+w%7D http://latex.codecogs.com/gif.latex?%5Cfrac%7B%5Csqrt%5B%5Cl...
- iogf 9y agoI'm not sure i have fully understood your question, could you rephrase?
- S4M 9y agoA simpler example: $ lax -c 'x ** 2' \sqrt[2]{x} While the output should be: x^2. If you wanted to use sqrt, it would have to be: \sqrt[\frac{1}{2}]{x}
- iogf 9y agoThe output for x 2 was chosen to print out \sqrt because it is possible to have x ^2 in python whose output would be x ^ 2 as expected. The idea is using to print long sqrt so advantaging this behavior. Although i haven't implemented x^2 planning to do it next week with the new improvements.
- maxerickson 9y agoIf you change the meanings of symbols then the description becomes "write lax, output latex".