News for hackers. Stuff that matters.
Re:Qalculate – The Ultimate Desktop Calculator by bityard on Wednesday August 09, 2023 @11:30AM (#37064217)
Anyone else just use the Python REPL as their desktop calculator?
Re:Qalculate – The Ultimate Desktop Calculator by idanp on Wednesday August 09, 2023 @11:47AM (#37064442)
yes, with modifications - https://github.com/idanpa/calcpy
Re:Qalculate – The Ultimate Desktop Calculator by poetaster on Wednesday August 09, 2023 @04:10PM (#37067735)
Looks really nice! I wanted to ask if 'matplotlib' was strictly needed since it's a big depends?
Re:Qalculate – The Ultimate Desktop Calculator by idanp on Wednesday August 09, 2023 @05:29PM (#37068706)
matplotlib is not needed, SymPy fallsback to ascii plotter and this is what I use on phone with termux.
Re:Qalculate – The Ultimate Desktop Calculator by oneshtein on Wednesday August 09, 2023 @11:56AM (#37064596)
bc -l
Re:Qalculate – The Ultimate Desktop Calculator by freedomben on Wednesday August 09, 2023 @12:35PM (#37065189)
Yes! (although ruby (irb) instead of python). It's amazingly useful to be able plug in expressions in a single line of text format. Though for more complex expressions, something like qalculate looks nice to me.
Re:Qalculate – The Ultimate Desktop Calculator by nuxi on Wednesday August 09, 2023 @03:16PM (#37067229)
For one-off simple calculations I just use awk, with this handy function in my .bashrc:

  function calc() { awk "BEGIN{print $*}"; }
  
  # usage in bash
  $ calc 'sqrt(25) + 2**3 - 17.17'
  -4.17