4 ms·
Ah, but you'd have to error on any even power, since of course a negative squared is positive, thus -v^2 would be v^2 and without the dash you can't be sure it'
by na85 5y ago
Ah, but you'd have to error on any even power, since of course a negative squared is positive, thus -v^2 would be v^2 and without the dash you can't be sure it's a switch.
- floodle 5y agoThere's an easy solution to this: just use i for even exponents. So (-iv)² = -vv and once you've escaped the brackets in bash all is good. I think we're on to something here....
- contravariant 5y agoNah exponents have higher precedence than signs, it gets annoying otherwise.