Page 1 of 1

grpn-1.4.1 gtk+2 scientific calculator

Posted: Thu 19 Mar 2015, 14:23
by charlie6
Hi,
here is a tiny scientific calculator (binary = 95 K)
grpn-1.4.0-1 gtk+2 scientific calculator
http://lashwhip.com/grpn.html
(gtk+2 version updated from gtk+1.2 version 1.1.2)
GRPN is a graphical reverse polish notation (RPN) calculator. GRPN is written in C and uses the GIMP Toolkit (GTK) on top of X11. GRPN was developed under Linux but has also been tested under SunOS and Solaris. It should work with almost any UNIX, though.
GRPN works with real numbers and complex numbers. Numbers can be displayed in 4 different radix modes, and complex numbers can be displayed in either Cartesian or polar form.
GRPN uses a stack and reverse polish notation to evaluate expressions. The stack in GRPN is infinite and limited only by available memory.
download source from
http://www.getreu.net/

the attached pet has been compiled on debian wheezy-3.5.2.5

enjoy :)
charlie

last edited:
the display digits might be set this way when running from command line:

Code: Select all

grpn -disp-fn "Liberation Mono Bold 16"
this could help to enhance visibility for poor eyesghted puppians (and so am I ... :( )

I have tried the following command without success

Code: Select all

grpn -btn-fn "Liberation Mono Bold 16"
to set buttons font.

see

Code: Select all

grpn --help
for command line options.

grpn-1.4.0-1 with default setting to DEGREE

Posted: Fri 20 Mar 2015, 10:26
by charlie6
Hi,
in addition to the above ppost, here is
grpn-1.4.0-1 compiled with default setting to DEGREE
avoiding need setting to degree at each run ... :?
therefore the DEG suffix is present in pets name.
Enjoy!
Charlie

ps: /usr/share/applications/grpn.desktop is set with:

Code: Select all

...
Exec=grpn -disp-fn "Liberation Mono Bold 20" 
...
which set the font and size for displayed datas
the value between "" may be set at each ones convenience :)

buttons font may be set through Menu/Desktop/JWM configuration/Desktop/GTK theme and there by setting the desired font+size in the bellow-left "Font" field

last edited: to compile with default DEGREES setting:

edit /src/mode.c as follows: change line 32 from

Code: Select all

int radixMode = RADIANS;
to

Code: Select all

int radixMode = DEGREES;
That's all ... :D ; save and compile (just do make)[/code]

grpn-1.4.1 32 and 64bits

Posted: Tue 14 Nov 2017, 09:02
by charlie6
Hi,
here are the 1.4.1 32 and 64 bits version, (64 bits version compiled on XenialPup64-7085uefi k 4.9.15) with default "Degrees" setting :D

stripped using

Code: Select all

# strip --strip-unneeded grpn
Charlie