Skip to content

github-pfeifer-syscon-de/calcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calcpp

A desktop calculator

calcpp

A simple lightweight desktop calculator (this time based on C++11 to try some it's features. As far i coud see they are useful, and as i'am just getting use to it not try to over featurize). Write down your calculation e.g.:

3 + 4 * 5

and press [control] and [enter] to evaluate it.

Adjustable output format: decimal, scientific, hexadecimal and octal. Input for decimal (with local support) and hexadecimal (with 0x...) numbers. Octal numbers e.g. 0123 are only parsed as such when the output format is octal. Adjustable angle unit: radian, degree, gon.

The following operators are supported:

+,- add, subtract
*,/,% multiply, divide, modulo
^ or ** power
|,&,!,<<,>> logical or, and, xor, shift left, shift right

The following functions are supported:

* sqrt, square root
* cbrt, cubic root
* log,ln, logarithm on base e
* log2, logarithm on base 2
* log10,lg, logarithm on base 10
* exp, e ^ x
* sin, sinus
* cos, cosinus
* tan, tangens
* asin, arcus sinus
* acos, arcus cosinus
* atan, arcus tangens
* abs, absolut value
* fac, factorial (usually writen as n!)

Usage of variables e.g.

a = 3 + 4 * 5
b = a + 7

the variable table can be edited so its easy to change a value by clicking it. Or rename a variable by clicking on its name. To remove a variable you can change its name to an empty string.

Unicode support for variable/constant names e.g. π (if you read this without unicode support small greek letter pi)

Automatic save/restore of edit buffer and window position.

Short feature list:

  • a character list
  • simple calendar view
  • solve quadratic equations
  • solve linear equations (by providing a matrix)
  • convert numbers to different bases
  • plot functions
  • convert units
  • a color value display
  • simple fraction calculations

Character list

Allows picking symbols by choosing a unicode page and click on the character. Also entering characters and view their properties is supported.

Custom units

Sorry i'm not too deep into non SI units, please check your results, suggestions are welcome. In INSTALL_DIR/share/calcpp/unit.js can be found if it is copied to ~/.local/share/calcpp/unit.js you can modify it or add other units.

Install

As a prerequisite genericImg is required, you have to install it first.

To build on (Lin)ux use :

meson setup build -Dprefix=/usr
cd build
meson compile

For a first test ./calcpp should be sufficient. If the application was once installed there is the likelihood, of conflicts between the installed configuration schema and a new version, so for further testing use meson install to avoid this.

Build for windows was integrated at least for msys2 use (choose your shell consistently):

meson setup build -Dprefix=${MINGW_PREFIX}
cd build
meson compile

i18n

To update i18n data use:

meson compile calcpp-pot
meson compile calcpp-update-po

About

A desktop calculator

Topics

Resources

License

GPL-3.0, GPL-3.0 licenses found

Licenses found

GPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors