Calculator app?

Every decent OS I’ve ever had the pleasure of using came with a basic calculator program, but I realized a few weeks ago that I’ve never seen one in BeOS. What about including one with Haiku? I don’t think it’d seem like that hard of a program to do; maybe someone with the proper programming knowledge could tackle this? Something along the lines of Windows’ calculator maybe.

Edit: I found a nice program on BeBits here that seems like it fits the bill, though it’s closed-source. If anyone else here would like to see this included in Haiku, I could contact the author and see if he’s willing to release the source code under the MIT license.

thats a good idea. probably an essential app every os should include, and would be relatively small.

How about CoveredCalc? It is a very cool skinnable calculator that has a BeOS and ZETA version. Here is a nice screenshot:

http://www.jpbe.net/news/archives/coveredcalc130.png

I am not sure about the license, but I know the author, and would not mind asking him.

Koki

I’d like to see a RPN calculator bundled with haiku. That’s the best you could possibly provide today. :wink:

koki wrote:
How about CoveredCalc? It is a very cool skinnable calculator that has a BeOS and ZETA version. Here is a nice screenshot:

http://www.jpbe.net/news/archives/coveredcalc130.png

I am not sure about the license, but I know the author, and would not mind asking him.

Koki

Looks nice 8).
But is it usable?

And does it support Hex/Binary operations, or other advanced features that should be in a handy calculator?

IMO, CoveredCalc is too complex, what with skinning and all. If we bundle a calculator, I think it needs to stay in line with the rest of the bundled apps: they are simple, but they do their simple job very well.

I’m talking almost a clone of the Windows calculator; you’d have basic arithmetic, base conversions (so handy!), but not much more.

Just my two cents. :slight_smile:

You may find something here:

http://www.beatjapan.org/mirror/www.be.com/beware/Utilities.html#Cat_Calculator

Many of the links to the archives may not work though.

j_freeman wrote:
I'm talking almost a clone of the Windows calculator; you'd have basic arithmetic, base conversions (so handy!), but not much more.

If you clone poorly cloned, most what you can get is a poor clone. Stop talking about windows calculator, it sucks a lot and even you understand it!

Simple calculator which would work with reverse polish notation would be everything you need. Or then one with polish/albegraic notation which resembles command line.

I don’t think haiku should have something useless. Simpilicity doesn’t mean (m$ nonusable)feature bloat.

I vote for Calc++

http://www.bebits.com/app/1124

The download seems to be broken but it was distributed as calc.zip, which a lot of people will have. (I’ve got a copy here).

It has a good range of advanced functions, is replicant-able, and also works on the command line.

Comes with source and is freeware, which I assume means Haiku could just incorporate it, no questions asked??

I don’t know if it fits Cheery’s requirements, because I don’t know what Polish notation is, sorry.

But as for CoveredCalc, it looks too basic. And who needs skinabilty in a calculator? That’s no attraction.

Malthus, we can only use it if it’s under the MIT or BSD license. (Okay, technically we COULD use it the way we use the binutils, but ideally it needs to be MIT/BSD.)

Anyway, can you post a link of where we might find it? Because, as you said, the one on BeBits is broken.

Cheery wrote:
j_freeman wrote:
I'm talking almost a clone of the Windows calculator; you'd have basic arithmetic, base conversions (so handy!), but not much more.

If you clone poorly cloned, most what you can get is a poor clone. Stop talking about windows calculator, it sucks a lot and even you understand it!

Actually I’m a huge fan of the Windows calculator. It has everything that I need; I don’t use RPN–I hate it with a passion. :stuck_out_tongue: Would be a nice feature to have in our calculator, though.

I guess we should start incorporating Gaussian blur and other filters into ShowImage, too? :roll:

<CIA-4> darkwyrm * r17681 /haiku/trunk/src/apps/calculator/ (15 files): Initial checkin with some style cleanups from original sources

I hardly ever use BeShare, so I won’t share it there (but others do). But it’s only 45kB so I’ll place a copy at: http://homepages.caverock.net.nz/~kh/calc.zip
also a quick screenshot:
http://homepages.caverock.net.nz/~kh/calc.png

On the licensing thing, it’s interesting to note that while the author calls it freeware in the supporting documentation, there’s no formal copyright or license statement in the code itself.

Now excuse me while I go to find out what RPN is…

Reverse Polish Notation, some sort of weird calculator usage system; I can never remember what it actually does…

MYOB wrote:
Reverse Polish Notation, some sort of weird calculator usage system; I can never remember what it actually does...

http://en.wikipedia.org/wiki/Reverse_polish_notation

Looks like it’s a concept to make use of a LIFO stack so you can apply the operators to the operands as they’re popped

It is one used by HP calculators once.

It’s incredibly simple, still very usable calculator architecture. The thing has less noise than usual albegraic calculator has. Ended to use them after I learned forth. I think I’ll never buy any calculator which doesn’t support it. And retain away from using albegraic notation if I can only use RPN.

The idea is simply like this: You have number stack, you have number paddle, with most functions it has.
When you want to know what 123 * 222 is, you press: 1 2 3 <enter> 2 2 2 *
Then the result appears on the top of stack. (27 306)

I just can’t stop liking it.

I guess most people know this as postfix notation, at least that is what it is called in my math books.

Cheery wrote:
It is one used by HP calculators once.

I just can’t stop liking it.

Yeah, my dad does engineering/structural steel sort of work and he swears by it. He’s always tried to get me to use it, but I just can’t–too discontinuous to how I deal with algebra… plus I’m lazy. :lol:

Anyway, I asked him what he calls it; he didn’t really have a name for it, but when I mentioned "Reverse Polish notation" he said, yeah, some people call it that but they (businesses like HP I guess) had to drop it because it knocks the Polish: If Reverse Polish (i.e. Not Polish) Notation is the superior way, then the Polish way must be the inferior, so it’s basically calling the Polish idiots. Probably why Ekdahl always saw it called "postfix" in his math books.

Just some interesting trivia…

j_freeman wrote:
Anyway, I asked him what he calls it; he didn't really have a name for it, but when I mentioned "Reverse Polish notation" he said, yeah, some people call it that but they (businesses like HP I guess) had to drop it because it knocks the Polish: If Reverse Polish (i.e. Not Polish) Notation is the superior way, then the Polish way must be the inferior, so it's basically calling the Polish idiots. Probably why Ekdahl always saw it called "postfix" in his math books.

It’s called Reverse Polish Notation because it’s the opposite order from Polish Notation, the reversal is purely a convenience for calculators and other computing devices, and the fundamental concept invented by Jan Łukasiewicz (a Pole and hence the origin of the description "Polish" for his notation) is by far the more important aspect.

Urban legend sites like Snopes.com can fill you in on dozens of similar ignorant claims about the supposedly unpleasant origins or meanings of words or phrases.

When you wrote that "some people … had to drop it", did you bother to look whether this was actually true? Hewlett Packard’s web site has lots of mentions of Reverse Polish Notation, as do other calculator manufacturers, mathematicians and so on.

j_freeman, if you want a fast-to-use -calculator which is unambiguous, forget your programmer virtue for a while and learn to use it. It really makes you feel that albegraic notation is only for papers.

Thought, I think nobody has ever tried to actually calculate math in RPN syntax, on paper. :slight_smile: It’d may be intresting to see what kind of math rules you can invent on such language…

Cheery, I know I’d probably be better off in the long run… but I don’t use calculators much. Just occasionally for basic arithmetic. If I start doing the type of work my dad does more, then I’ll have to start using it… as these Jobbers won’t accept anything but RPN.

NoHaikuForMe wrote:
j_freeman wrote:
Anyway, I asked him what he calls it; he didn't really have a name for it, but when I mentioned "Reverse Polish notation" he said, yeah, some people call it that but they (businesses like HP I guess) had to drop it because it knocks the Polish: If Reverse Polish (i.e. Not Polish) Notation is the superior way, then the Polish way must be the inferior, so it's basically calling the Polish idiots. Probably why Ekdahl always saw it called "postfix" in his math books.

It’s called Reverse Polish Notation because it’s the opposite order from Polish Notation, the reversal is purely a convenience for calculators and other computing devices, and the fundamental concept invented by Jan Łukasiewicz (a Pole and hence the origin of the description "Polish" for his notation) is by far the more important aspect.

Urban legend sites like Snopes.com can fill you in on dozens of similar ignorant claims about the supposedly unpleasant origins or meanings of words or phrases.

When you wrote that "some people … had to drop it", did you bother to look whether this was actually true? Hewlett Packard’s web site has lots of mentions of Reverse Polish Notation, as do other calculator manufacturers, mathematicians and so on.

What I wrote is merely a paraphrasal of what my dad told me. I was never implying that it was, or expousing it as, the truth; only anecdotal. Hope you got your ego boost, though. 8)

Interesting stuff anyway. Next time, don’t come off so arrogant when you show people the error of their ways; we all know something that the general population believes to the contrary. Cheers!

On an unrelated (i.e. related) note, looks like Malthus’ choice was picked as the calculator. I haven’t verified this, but the source code references Mr. Wagner, who is the author of Calc++. Anyone had a chance to try a recent revision and see?