On the terminal, I use `qalc`[1]. It's a nice natural language calculator that does arithmetic, solves quadratic equations/linear systems, does unit conversions and even a bit of calculus. Combine it with a cli graphing tool and you can do pretty cool things.
Anything more complicated I'm probably ok with latency, so I open up wolframalpha and enter it there, again, in natural language.