News for hackers. Stuff that matters.
Re:PCalc for macOS by sabellito on Thursday November 19, 2020 @09:25PM (#25156769)
I still find it very strange for calculator software to mimic a physical calculator.

This[1] is a wonderful calculator for mac if you don't need the scientific bits.

I like Numi so much that I made a slightly worse, open source, mutliplatform version of it[2], that I use often.

[1] https://numi.app

[2] https://github.com/filipesabella/CalcPad

Re:PCalc for macOS by siraben on Thursday November 19, 2020 @09:38PM (#25156858)
Up to Catalina, macOS used to have the overpowered Emacs calculator[0] preinstalled. Default keybinding to activate it in Emacs is C-x * *. I especially like how it uses RPN but also has an algebraic mode, so one can use whichever is more convenient. There's several other features that I use quite often, such as

- symbolic differentiation/integration

- conversion between units

- solving equations

- working with matrices

- rewrite systems

[0] https://www.gnu.org/software/emacs/manual/html_mono/calc.htm...

Re:PCalc for macOS by LeoPanthera on Thursday November 19, 2020 @09:43PM (#25156879)
Well "bc" is still included with macOS. "bc -l" to start it in a useful mode. It's slightly quirky, but very powerful.

For example, "4*a(1)" to calculate pi.

Re:PCalc for macOS by dan-robertson on Friday November 20, 2020 @04:06AM (#25158670)
I don’t really understand how you could read the parent comment and then suggest bc as a reasonable equivalent. For one thing I find interacting with bc to not be so interactive as gnu calc—you have to type one line at a time and it is hard to see intermediate results or make modifications. For a second thing, I don’t think bc includes:

- differentiation

- symbolic/numeric integration

- equation solving/manipulation

- unit conversion

- graphing

- vectors and matrices

- functional array operations like map/reduce

- statistical operations

- a detailed manual

Personally my main use of bc is:

  ... | paste -s -d+ | bc
Re:PCalc for macOS by nomel on Thursday November 19, 2020 @10:21PM (#25157043)
I often just:

    $ python
    from math import *
When you have a hammer...
Re:PCalc for macOS by mprovost on Friday November 20, 2020 @09:04AM (#25160509)
And dc (the original desk calculator) if you want RPN. I pretty much always have a terminal window with dc running for quick math. It's good for doing base conversions too.
Re:PCalc for macOS by ybbond on Friday November 20, 2020 @01:59AM (#25157937)
how do you use this function? I am aware that Emacs keybinding (C-n, C-p, C-M-f) can be used in macOS' text inputs, but I somehow cannot trigger C-x to work
Re:PCalc for macOS by siraben on Friday November 20, 2020 @02:02AM (#25157950)
This keybinding is meant to be used inside Emacs.
Re:PCalc for macOS by ybbond on Friday November 20, 2020 @05:53AM (#25159229)
I see...

I get your previous comment wrong then

Re:PCalc for macOS by dhosek on Thursday November 19, 2020 @11:35PM (#25157333)
I get almost all of my calculator needs on the mac via spotlight. cmd-space and then type whatever I need to calculate. The only thing I don't get that I'd like is the ability to do things like "34 days from today" or "days since 15 Feb 2019"
Re:PCalc for macOS by jen729w on Friday November 20, 2020 @02:41AM (#25158152)
Soulver does that, from memory, and has an Alfred integration. Agreed, useful.
Re:PCalc for macOS by ithkuil on Friday November 20, 2020 @03:48AM (#25158556)
I'm also usually happy with these kind of tools that alloy you to do quick one liners (even google search itself can do a lot!). But sometimes I need multiple expressions. Keeping track of what I wrote already, some variables perhaps etc
Re:PCalc for macOS by saagarjha on Friday November 20, 2020 @06:57AM (#25159609)
Spotlight is sadly really annoying to do math in these days, since it'll spin up multiple cores trying to do useless work :/
Re:PCalc for macOS by daturkel on Thursday November 19, 2020 @09:34PM (#25156838)
I came to the comments to shill for Numi, which is my favorite app for quick calculations. (I don't personally understand why tiled number buttons would ever be desirable for a non-touchscreen GUI app—I much prefer typing equations in.) And I love Numi's variables which you can update and automatically propagate the changes through downstream calculations.
Re:PCalc for macOS by seltzered_ on Thursday November 19, 2020 @09:57PM (#25156947)
I came to the comments to shill for http://calca.io . For the most part has just worked and have used it in training videos, client emails, rough math sketches, etc. And the output is just markdown-formatted plaintext so you can still use it for reading purposes without the app.
Re:PCalc for macOS by buzzerbetrayed on Friday November 20, 2020 @12:59AM (#25157705)
From their website

> Functions can also be inverted so that you can solve for their parameters. Note how we were able to use the one equation for Fahrenheit temperatures f to calculate a Celsius temperature c.

This looks really cool. Thanks for the recommendation

Re:PCalc for macOS by npsomaratna on Friday November 20, 2020 @04:56AM (#25158946)
Same here - my co-founder suggested that I use Numi one day, and I haven't looked back since.
Re:PCalc for macOS by Brajeshwar on Friday November 20, 2020 @01:48AM (#25157885)
Numi is cool. Use it mostly when with teams and I kept my personal that I started with -- Soulver[1] -- another interesting calculator.

1. https://soulver.com

Re:PCalc for macOS by purplecats on Thursday November 19, 2020 @09:59PM (#25156953)
you made numi? that things is awesome! for that kind of thing, I use Calca [1] but I admit, I have numi on my mac just because I think it's adorable. I also have the alfred plugin but it's disabled cause i dont think i figured out how to use it well on alfred.

[1] http://calca.io/

Re:PCalc for macOS by sabellito on Thursday November 19, 2020 @10:24PM (#25157052)
Oh I definitely didn't! Apologies if my wording implied so, I've edited it to make it clearer.

I just made the open source knock-off, as I use linux as well and wanted it on there too.

Re:PCalc for macOS by tgv on Friday November 20, 2020 @02:08AM (#25157978)
So far, I've always used MathPad for these kind of things (not the MathPad currently in the App Store, but the one written by Mark Widholm). That's an ancient application: first version was 1993, the latest version (3.0.4) dates from 2012, but it still runs on Catalina. It doesn't have the "English-ish" features of numi, but for simple, sequential calculations, it looks very similar. Apart from that, it can read files, plot in 2D and 3D, and read files.

But I'm definitely going to take a look of the two you mentioned.

Re:PCalc for macOS by f0ff on Friday November 20, 2020 @06:16AM (#25159349)
Thanks for the Numi clone, I can start converting all my linux buddies!
Re:PCalc for macOS by rayshan on Thursday November 19, 2020 @10:56PM (#25157175)
Thanks for the recommendations! How do they compare to Soulver?
Re:PCalc for macOS by sabellito on Thursday November 19, 2020 @11:07PM (#25157212)
Oh my, I've been looking for that for years, and could never find it. I must have used it over 10 years ago.

To my knowledge Soulver was the first one to apply this concept, but I haven't used it in so many years I wouldn't know how it compares to Numi, although it does seem to have more features.