User Tools

Site Tools


dcalcunix

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dcalcunix [2018/12/26 00:59] – [gdcalc] admindcalcunix [2021/10/20 01:23] (current) admin
Line 1: Line 1:
 +====== MOVED TO ======
 +
 +[[ https://gitlab.com/wef/gdcalc | gitlab ]]
 +
 {{hp-16c-48.png}}  {{hp-16c-48.png}} 
 ====== gdcalc ======  ====== gdcalc ====== 
-a Financial, Scientific, Statistical & Programming calculator for GTK+ (since 1997!)+a Financial, Scientific, Statistical & Programming calculator for Unix/Linux (since 1983!) 
 + 
 +{{ :gdcalc-3.png?nolink&600 |}}
  
-**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, TI or Casio style) and Reverse Polish Notation (RPN or Hewlett-Packard style). If you've not heard of RPN before, you are probably familiar with algebraic calculators. Very briefly, while simpler and more natural to use, RPN calculators may need some study eg. they have an Enter key instead of the equals key and are based on the use of a stack. **gdcalc** provides both Algebraic notation (ie. conventional, TI or Casio style) and Reverse Polish Notation (RPN or Hewlett-Packard style). If you've not heard of RPN before, you are probably familiar with algebraic calculators. Very briefly, while simpler and more natural to use, RPN calculators may need some study eg. they have an Enter key instead of the equals key and are based on the use of a stack.
  
 **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://bhepple.freeshell.org/dcalc/unix/dcalcCurses.html | dcalcCurses ]]+The original dcalc for curses (Unix console) is at [[ http://bhepple.freeshell.org/dcalc/unix/dcalcCurses.html | dcalcCurses ]] and is also included in this package.
  
 If you want to know more about RPN calculators (and why they are more intuitive than algebraic calculators) take a look at http://www.hpcalc.org If you want to know more about RPN calculators (and why they are more intuitive than algebraic calculators) take a look at http://www.hpcalc.org
Line 15: Line 21:
   LC_NUMERIC=en_US gdcalc &   LC_NUMERIC=en_US gdcalc &
      
-Note: if you get a badly drawn border around windows in **dcalc** (curse-mode in a terminal) then try this: +Note: if you get a badly drawn border around windows in **dcalc** (curses-mode in a terminal) then try this: 
-  TERM=gnome dcalc+  TERM=gnome dcalc # or 
 +  TERM=vte dcalc
  
 ===== Major modes ===== ===== Major modes =====
Line 42: Line 49:
  
 ===== Extending gdcalc ===== ===== Extending gdcalc =====
-**gdcalc** is fully programmable (you've got the source!) and I've left loads of blank keys on the GUI for you to add in your favourites. If you add functions that you think would be interesting for the world at largeplease let me have the diffs and I'll put them in. Fixes also welcome ... upgrade ideas tolerated.+**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. Just click on a blank button and add your own label and (algebraic) formula. You can reference xy, z, t and l registers eg label="**HYP**" expr="sqrt(x^2+y^2)"
 + 
 +Custom keys are indicated by the prefix "CUSTOM:in the tooltip, visible if you hover the mouse over the button. 
 + 
 +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 | 
 +| <down> | ROLL | 
 +| % | X percent of Y | 
 +| ESC | INV | 
 +| <enter>, <up> | enter | 
 +| <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  in ''~/.config/gdcalc/gdcalc.css'' or ''/etc/gdcalc/gdcalc.css'':
 +
 +  .register_entry_class { 
 +      font-family: "Lcd2"; /* http://legionfonts.com/fonts/lcd2-normal */
 +      font-size: 25px;
 +      background-color: lightgrey;
 +  }
 +  
 +  .register_x_entry_class { 
 +      background-color: lightblue;
 +  
 +  }
 +  
 +  .button_class {
 +      font-family: "Free Sans"; /* gnu-free-sans-fonts-20120503-24.fc34.noarch */
 +      font-size: 15px;
 +      font-weight: 800;
 +      padding: 3px 0px 3px;
 +  }
 +  
 +  .custom_class {
 +      color: black;
 +  }
 +
 +
 +The following screenshots are from version 2.x 
  
 ==== Algebraic (Casio/TI), financial mode ==== ==== Algebraic (Casio/TI), financial mode ====
Line 60: Line 134:
 ==== Statistics mode ==== ==== Statistics mode ====
  
-{{ gdcalc_pro.png }}+{{ gdcalc_sta.png }}
  
  
 ===== Download ===== ===== Download =====
  
-==== Source ==== 
 Source code downloads, tarballs, RPMs, and **svn**(1) repository is at [[ https://sourceforge.net/projects/gdcalc/ | Sourceforge ]] Source code downloads, tarballs, RPMs, and **svn**(1) repository is at [[ https://sourceforge.net/projects/gdcalc/ | Sourceforge ]]
  
 +===== 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://aur.archlinux.org/packages/gdcalc/|aur]]
 +
 +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=/usr/local/stow/gdcalc
 +  make
 +  sudo mkdir -p /usr/local/stow/gdcalc
 +  sudo make install
 +  cd /usr/local/stow
 +  sudo stow gdcalc
 +  
 +The **gdcalc**(1) binary should now appear in /usr/local/bin
 ===== 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 83: Line 188:
 For corrections/additions/suggestions for this page, please send email to: [[ bob dot hepple at gmail dot com ]] For corrections/additions/suggestions for this page, please send email to: [[ bob dot hepple at gmail dot com ]]
  
-Copyright (c) 1997-2018 Bob Hepple. All rights reserved.+Copyright (c) 1983-2021 Bob Hepple. All rights reserved.
  
dcalcunix.1545811165.txt.gz · Last modified: 2018/12/26 00:59 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki