dcalcunix
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dcalcunix [2018/12/23 00:18] – [Contact] admin | dcalcunix [2021/10/14 18:39] – admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
{{hp-16c-48.png}} | {{hp-16c-48.png}} | ||
====== gdcalc ====== | ====== gdcalc ====== | ||
- | a Financial, Scientific, Statistical & Programming calculator for GTK+ (since | + | a Financial, Scientific, Statistical & Programming calculator for Unix/ |
- | **gdcalc** is a financial, statistics, scientific and programmers calculator for Unix and Linux. The GUI was written with **glade**(1) and uses the Gtk-2 toolkit - so it may well be compatible with themes and other whiz-bang features of those systems. | + | {{ : |
+ | |||
+ | **gdcalc** is a financial, statistics, scientific and programmers calculator for Unix and Linux. The GUI was written with **glade**(1) and uses the Gtk toolkit - so it may well be compatible with themes and other whiz-bang features of those systems. | ||
**gdcalc** provides both Algebraic notation (ie. conventional, | **gdcalc** provides both Algebraic notation (ie. conventional, | ||
**gdcalc** is based on my venerable dcalc RPN calculator which I wrote about a million years ago to learn C and curses - about 1983, I suppose. | **gdcalc** is based on my venerable dcalc RPN calculator which I wrote about a million years ago to learn C and curses - about 1983, I suppose. | ||
- | The original dcalc for curses (Unix console) is at [[ http:// | + | The original dcalc for curses (Unix console) is at [[ http:// |
If you want to know more about RPN calculators (and why they are more intuitive than algebraic calculators) take a look at http:// | If you want to know more about RPN calculators (and why they are more intuitive than algebraic calculators) take a look at http:// | ||
Line 14: | Line 16: | ||
Note: if you are using a locale other than English, please make sure you run **gdcalc** with the following command (thanks to Gösta): | Note: if you are using a locale other than English, please make sure you run **gdcalc** with the following command (thanks to Gösta): | ||
LC_NUMERIC=en_US gdcalc & | LC_NUMERIC=en_US gdcalc & | ||
+ | | ||
+ | Note: if you get a badly drawn border around windows in **dcalc** (curses-mode in a terminal) then try this: | ||
+ | TERM=gnome dcalc # or | ||
+ | TERM=vte dcalc | ||
===== Major modes ===== | ===== Major modes ===== | ||
Line 39: | Line 45: | ||
===== Extending gdcalc ===== | ===== Extending gdcalc ===== | ||
- | **gdcalc** is fully programmable (you've got the source, ninny) and I've left loads of blank keys on the GUI for you to add in your favourites. | + | **gdcalc** is programmable (quite apart from the fact that you can get the source!) and I've left loads of blank keys on the GUI for you to add in your favourites. |
+ | |||
+ | Custom keys are indicated by the prefix " | ||
+ | |||
+ | To change or delete a custom key, right click on it. | ||
+ | |||
+ | ===== Keyboard shortcuts ===== | ||
+ | |||
+ | |||
+ | ^ key ^ function ^ | ||
+ | | s | store | | ||
+ | | r | recall | | ||
+ | | y | exchange x and y | | ||
+ | | z | exchange x and z | | ||
+ | | t | exchange x and t | | ||
+ | | l | last x | | ||
+ | | x | clear x | | ||
+ | | < | ||
+ | | % | X percent of Y | | ||
+ | | ESC | INV | | ||
+ | | < | ||
+ | | <bsp> | backspace | | ||
+ | | Ctrl+c | Copy | | ||
+ | | Ctrl+v | Paste | | ||
+ | | Ctrl+d | degrees mode | | ||
+ | | Ctrl+r | radians mode | | ||
+ | | Ctrl+f | Financial mode | | ||
+ | | Ctrl+s | Scientific mode | | ||
+ | | Ctrl+t | Statistics mode | | ||
+ | | Ctrl+p | Programming mode | | ||
+ | | Ctrl+q | quit | | ||
+ | | Shift+Ctrl+a | Convert Area | | ||
+ | | Shift+Ctrl+c | Convert Currency | | ||
+ | | Shift+Ctrl+f | Convert fuel | | ||
+ | | Shift+Ctrl+l | Convert length | | ||
+ | | Shift+Ctrl+m | Convert mass | | ||
+ | | Shift+Ctrl+o | Convert other | | ||
+ | | Shift+Ctrl+p | Convert pressure | | ||
+ | | Shift+Ctrl+s | Convert speed | | ||
+ | | Shift+Ctrl+t | Convert temperature | | ||
+ | | Shift+Ctrl+v | Convert volume | | ||
===== Screenshots ===== | ===== Screenshots ===== | ||
+ | |||
+ | Version 3.x (the image at top of page) uses CSS styles | ||
+ | |||
+ | .register_entry_class { | ||
+ | font-family: | ||
+ | font-size: 25px; | ||
+ | background-color: | ||
+ | } | ||
+ | | ||
+ | .register_x_entry_class { | ||
+ | background-color: | ||
+ | | ||
+ | } | ||
+ | | ||
+ | .button_class { | ||
+ | font-family: | ||
+ | font-size: 15px; | ||
+ | font-weight: | ||
+ | padding: 3px 0px 3px; | ||
+ | } | ||
+ | |||
+ | The following screenshots are from version 2.x | ||
==== Algebraic (Casio/TI), financial mode ==== | ==== Algebraic (Casio/TI), financial mode ==== | ||
Line 57: | Line 125: | ||
==== Statistics mode ==== | ==== Statistics mode ==== | ||
- | {{ gdcalc_pro.png }} | + | {{ gdcalc_sta.png }} |
- | ===== Version history ===== | ||
- | * 2018-12-23 fixed error in financial calculation for ' | ||
- | * 2.18 2013-05-01 - fixed interface to units(1) (it no longer accepts -o%20g), fixed convert-> | ||
- | * 2.17 2013-04-30 - fixed to compile on Fedora-18 | ||
- | * 2.16.1 2012-03-18 - moved to Sourceforge | ||
- | * 2.16 March 2012 - moved to google code | ||
- | * 2.15 Jan 6th 2007 - change register label width X Y Z T L | ||
- | * 2.14 Jan 1st 2007 - change to gtk-2 | ||
- | * 2.13 Jul 19th 2002 - more improvements to interest rate calculation | ||
- | * 2.12-2 Jun 19th 2002 - fixed conflict with kdelibs | ||
- | * 2.12 Jun 16th 2002 - tidy up rpm build, provide source rpm, integrate with gnome desktop, KDE, destroy signal processing fixed (**gdcalc** was not terminating on " | ||
- | * 2.11 May 25th 2002 - much more robust interest rate calculations, | ||
- | * 2.9.2 Jan 19th 2002 - RCL can now be used in algebraic expressions | ||
- | * 2.9.1 Nov 24th 2001 - more fixes | ||
- | * 2.9 Nov 12th 2001 - fixes many more keyboard mappings | ||
- | * 2.8.1 Oct 25th 2001 - fixes enter key not working, IP display | ||
- | * 2.8 Oct 21st 2001 - algebraic interface (a la Casio/TI), support of resource file for font selection | ||
- | * 2.7 March 17th 2001 - new GUI, added Linear Regression, float/ | ||
- | * 2.6.3 Nov 12th 2000 - fix to bug in h.ms and r->p conversion; add permutations, | ||
- | * 2.6.1 Apr 26th 2000 - fixes to ASCII mode, version numbering | ||
- | * 2.6 Apr 24th 2000 - GTK+ version (**gdcalc**) | ||
- | * 2.5 Mar 8th 2000 - bug in interest calculation squashed | ||
- | * 2.4 Feb 25 1999 - rpm source changed to tarball | ||
===== Download ===== | ===== Download ===== | ||
- | ==== Source ==== | ||
Source code downloads, tarballs, RPMs, and **svn**(1) repository is at [[ https:// | Source code downloads, tarballs, RPMs, and **svn**(1) repository is at [[ https:// | ||
+ | ===== Install ===== | ||
+ | |||
+ | From rpm on RPM-based systems, eg fedora: | ||
+ | |||
+ | sudo rpm -U gdcalc-x.xx-x.x86_64.rpm | ||
+ | | ||
+ | From rpm on debian-based systems, eg ubuntu: (not tested) | ||
+ | |||
+ | sudo alien -i gdcalc-x.xx-x.x86_64.rpm | ||
+ | | ||
+ | On arch: it's in [[https:// | ||
+ | |||
+ | From tarball: | ||
+ | |||
+ | tar -xf gdcalc-x.xx.tar.gz | ||
+ | cd gdcalc-x.xx | ||
+ | make | ||
+ | sudo make install | ||
+ | |||
+ | The **gdcalc**(1) binary should now appear in /usr/bin | ||
+ | |||
+ | From tarball, using **stow**(1): | ||
+ | tar -xf gdcalc-x.xx.tar.gz | ||
+ | cd gdcalc-x.xx | ||
+ | ./configure --prefix=/ | ||
+ | make | ||
+ | sudo mkdir -p / | ||
+ | sudo make install | ||
+ | cd / | ||
+ | sudo stow gdcalc | ||
+ | | ||
+ | The **gdcalc**(1) binary should now appear in / | ||
===== Copyright ===== | ===== Copyright ===== | ||
- | Copyright (C) 1997-2018 Bob Hepple | + | Copyright (C) 1983-2021 Bob Hepple |
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||
Line 103: | Line 179: | ||
For corrections/ | For corrections/ | ||
- | Copyright (c) 1997-2018 Bob Hepple. All rights reserved. | + | Copyright (c) 1983-2021 Bob Hepple. All rights reserved. |
dcalcunix.txt · Last modified: 2021/10/20 01:23 by admin