Skip to content

eltats/calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Calculator

Math expression evaluator with GUI

Table of Contents

Introduction

Implementation of the Calculator in C following the principles of structured programming. In addition to basic arithmetic operations, the calculator features the mathematical functions, x variable and graphing.

Features

FunctionsArithmetic Operators
Function description Function
Cosine cos(x)
Sine sin(x)
Tangent tan(x)
Arc cosine acos(x)
Arc sine asin(x)
Arc tangent atan(x)
Square root sqrt(x)
Natural logarithm ln(x)
Common logarithm log(x)
Operator Example
Brackets (a + b)
Addition a + b
Subtraction a - b
Multiplication a * b
Division a / b
Power a ^ b
Modulus a mod b
Unary plus +a
Unary minus -a

BONUS: You can find Credit & Debit calculators as well ;)

Goals

  • Make & Imgui integration
  • GUI based on Dear ImGui
  • Integrate ImPlot
  • Shunting-Yard algorithm.
  • Credit calculator
  • Debit calculator
  • Unit Tests

Build and Dependencies

You'll need to install g++, glfw.

$ git clone https://github.com/eltats/calculator --recursive
$ cd calculator/src/
$ make 
$ make test (for tests)
$ make dvi (for documentation)

Tests

  • Unit tests are implemented using Check & coverage report with LCOV

About

Math expression evaluator with GUI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors