4 ms·
I keep hoping someone will do this with -v², -v³, and so on.
by banana_giraffe 5y ago
I keep hoping someone will do this with -v², -v³, and so on.
- Aachen 5y agoWhere the base value is two and -v³ is a shortcut for -vvvvvvvv? Because it wouldn't work with a base of one (1³=1). Just assessing expectations because I do like the idea and would implement it (in addition to the expected way) next time it comes up
- banana_giraffe 5y agoIn my mind, -v³ would be the same as -vvv, and -v⁴ for -vvvv, and on and on. I suppose you could really take it to some absurd level with -v¹⁰ for -vvvvvvvvvv
- layer8 5y agoThe v is log scale, which does make some sense in terms of output volume. ;)
- na85 5y agoAh, 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.