Skip to content

SashexSRB/InlineTerminalCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

calc - Lightweight Modular Terminal Calculator

calc is a small, fast, and extensible command-line calculator written in C, designed as a simple UNIX-style inline tool with modular architecture. It supports basic arithemtic operators and a growing set of mathematical functions. Its codebase is split into clean modules (src/,include/) for easy extension, and it includes a proper calc(1) man page for system-wide integration.


Features

  • Arithmetic operators:" + - * /
  • Math functions: sqrt,sin,cos,tan,log,log10,exp,abs
  • Modular design: add new operators or functions easily
  • Makefile with build, install and uninstall targets

Build

make

Install (System-wide)

sudo make install

Uninstall

sudo make uninstall

Usage

Binary operations:

calc <number> <op> <number>

Unary functions:

calc <function> <number>

Examples:

calc 5 + 3
calc sqrt 9
calc sin 1.57

About

Inline Terminal Calculator written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published