grpn-1.4.1 gtk+2 scientific calculator

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

grpn-1.4.1 gtk+2 scientific calculator

#1 Post 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.
Attachments
grpn-1.4.0-1(1).jpg
setting display fonts
(9.9 KiB) Downloaded 719 times
grpn-1.4.0-1.jpg
(30.29 KiB) Downloaded 715 times
grpn_1.4.0-1_i386.pet
(42.53 KiB) Downloaded 800 times
Last edited by charlie6 on Tue 14 Nov 2017, 09:10, edited 1 time in total.

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

grpn-1.4.0-1 with default setting to DEGREE

#2 Post 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]
Attachments
grpn_1.4.0-1_DEG.jpg
(28.26 KiB) Downloaded 599 times
grpn_1.4.0-1-DEG_i386.pet
(41.51 KiB) Downloaded 759 times

User avatar
charlie6
Posts: 1230
Joined: Mon 30 Jun 2008, 04:03
Location: Saint-Gérard / Walloon part of Belgium

grpn-1.4.1 32 and 64bits

#3 Post 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
Attachments
GRPN-1.4.1_Deg-wheezy.pet
(44.67 KiB) Downloaded 510 times
GRPN64-1.4.1_Deg.pet
grpn-1.4.1 64 bits degrees as default setting
(46.44 KiB) Downloaded 523 times

Post Reply