LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 11-09-2009, 09:21 PM   #1
MaGicMaX
Member
 
Registered: Aug 2009
Location: Calgary, AB, Canada
Distribution: Ubuntu
Posts: 51

Rep: Reputation: 15
RPN Programmable Calculator suggestions


Im looking for a Reverse Polish Notation (RPN) calculator program for Linux. Must be programmable, im not too picky on the exact syntax of the language, as long as there is adequate instruction on its use (man page). Preferably something in the Ubuntu Repositories (or has a .deb for it). Any suggestions welcome!
 
Old 11-09-2009, 11:57 PM   #2
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Ubuntu
Posts: 205

Rep: Reputation: 31
Fedora has orpie. Never used it, but it's the only thing that comes up on a "yum search rpn". Description:
Quote:
A fullscreen console-based RPN calculator
Edit: might be interesting to write your own, if you are so inclined.

Last edited by eric.r.turner; 11-09-2009 at 11:58 PM.
 
Old 11-10-2009, 04:33 AM   #3
wje_lq
Member
 
Registered: Sep 2007
Location: Mariposa
Distribution: Debian lenny, Slackware 12
Posts: 805

Rep: Reputation: 161Reputation: 161
Quote:
Originally Posted by MaGicMaX View Post
Im looking for a Reverse Polish Notation (RPN) calculator program for Linux. Must be programmable, im not too picky on the exact syntax of the language, as long as there is adequate instruction on its use (man page).
You don't seem to require that it have a GUI, so sometimes the oldest is the best. It's called dc. It's beem part of the UNIX world longer than the C programming language has. These days, it's part of the bc package:

http://ftp.gnu.org/pub/gnu/bc/bc-1.06.tar.gz

It's so ancient and so classic that your distribution might already contain an executable for it. Try this at the command line:
Code:
which dc
man dc
Hope this helps.
 
Old 11-10-2009, 07:51 AM   #4
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: Slackware64 13.37, Kubuntu 10.04
Posts: 2,944

Rep: Reputation: Disabled
dc is great, but I sure wish it had the basic transcendental functions. It integrates quite well with scripts.
Kevin Barry
 
Old 11-10-2009, 12:24 PM   #5
MaGicMaX
Member
 
Registered: Aug 2009
Location: Calgary, AB, Canada
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
Turns out i have dc already installed. Looked through the man pages and found a few things missing that i may require. Trigonometric functions being one of them. I will need to use exponents also. Possibly some basic matrices. Basically a fully functional engineering grade calculator. As far as the programming goes, i guess since it runs in the shell i would just need to write a script for automating arithmetic?

Edit: I also tried orpie, looks loaded with features, probably more than i need. Is it possible to write programs for it though?

Last edited by MaGicMaX; 11-10-2009 at 12:33 PM.
 
Old 11-10-2009, 12:32 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
I have actually written a basic command-line RPN calculator for fun in just about every language I learned!

As for GUI calculators, "Qalculate!" has a pretty good RPN mode.
 
Old 11-10-2009, 12:46 PM   #7
MaGicMaX
Member
 
Registered: Aug 2009
Location: Calgary, AB, Canada
Distribution: Ubuntu
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MTK358 View Post
I have actually written a basic command-line RPN calculator for fun in just about every language I learned!

As for GUI calculators, "Qalculate!" has a pretty good RPN mode.
I tried Qalculate, packed with features, quite impressive. Is it programmable?
 
Old 11-10-2009, 12:56 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Distribution: Arch x86_64
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707Reputation: 707
I actually don't know what a programmable calculator is.
 
Old 11-10-2009, 02:48 PM   #9
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 12.1 & Scientfic Linux 6.1
Posts: 7,298

Rep: Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706
if you want there ARE the HP calc's for the desktop
http://freshmeat.net/projects/nonpareil/

i run a 11c on gnome
 
Old 11-10-2009, 02:48 PM   #10
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: Slackware64 13.37, Kubuntu 10.04
Posts: 2,944

Rep: Reputation: Disabled
You might look at some of these:
http://www.hpcalc.org/hp48/pc/emulators/

Kevin Barry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmable Northgate OmniKey Keyboard Woodsman Linux - Hardware 17 08-29-2010 04:03 PM
what is a programmable I/O ? twelvenine Linux - Hardware 6 01-05-2009 11:45 PM
Is SMI plug programmable?? fuzzyash Programming 0 08-20-2006 03:30 AM
Programmable Interval Timers saintt Linux - General 0 10-19-2001 08:50 AM


All times are GMT -5. The time now is 05:16 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration