Skip to content

crazyBaboon/mcalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mcalc

mcalc is a graphical multi-precision calculator, which focus on Number Theory.

It is a graphical front-end to GMP.

Screenshot:

Screenshot at 2022-05-13 21-21-33

If the result is longer than 34 digits, it will be displayed in the terminal.

Usage

Some of the less obvious keys:

"Fn" calculates the nth fibonacci number

"!" calculates the factorial

"#" calculates the primorial

"np" calculates the next prime number

"p?" primality test

Compile and run:

Dependencies:

In order to compile mcalc, you will need these two libraries installed:

On Linux Mint, install the dependencies using:

sudo apt install libglfw-dev libgmp-dev

Campilation command on UNIX-like:

make

Always launch it from a terminal:

./mcalc

Example: calculate the largest known prime number:

Calculate the largest prime number using mcalc. https://en.wikipedia.org/wiki/Largest_known_prime_number

mcalc

Advantages of using mcalc are the speed and ease of use (when compared to programming tools like python or bc).

List of GMP functions wrapped up so far

Currently, the following functions are available to use directly:

  • mpz_mul();
  • mpz_div();
  • mpz_sub();
  • mpz_add();
  • mpz_pow_ui();
  • mpz_fac_ui();
  • mpz_probab_prime_p();
  • mpz_nextprime();
  • mpz_sqrt();
  • mpz_primorial_ui().
  • mpz_fib_ui();

Feel free to place requests for more functions in the "issues" section :P

License

GPL v2

(C)2022 Nuno Ferreira

Uses the Nuklear GUI toolkit https://github.com/Immediate-Mode-UI/Nuklear

About

GUI Front-end to GMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages