Skip to content

maximfersko/Smart-Calculator-Qt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation SmartCalc

Build:

$ cd src
$ make install

Main Calculator

Smart calculator - divided into three blocks. This calculator - calculates arithmetic and binary operations with numbers, graph builder - builds a graph according to a given expression, credit calculator - has two types of credit: annuity, differentiated.

HOW TO USE:

All buttons of the screen are active.The calculation of the expression you entered is done by pressing the "=" button.When you enter x and press =, a dialog box will appear and ask you to drive the number to replace x.

Operators

Operator name Operator Description Example
Bracket ( ) Takes the expression in brackets x - (y * z)
Plus + Addition of two operands x + y
Minus - The difference of two operands x - y
Multiplication * Product of two operands x * y
Division / Division of two operands x / y
Exponentiation ^ Exponentiation x ^ y
Remainder of division mod Remainder of division x mod y
Unary minus - Unary minus -x
Unary plus + Unary plus +a

Functions

Function Description
cos(x) Computes cosine
sin(x) Computes sine
tan(x) Computes tangent
acos(x) Computes arc cosine
asin(x) Computes arc sine
atan(x) Computes arc tangent
sqrt(x) Computes square root
ln(x) Computes natural logarithm
log(x) Computes common logarithm

Graph builders - plots the graph according to the output expression. The range is from - 1,000,000 to 1,000,000 inclusive.

HOW TO USE:

Entering x(min) and x(max) will set the range of the graph on the x-axis, entering X will set a point on the X-axis, entering Y will set a point on the Y-axis.Clicking on custom will clear your fields, clicking on example will set an example for a quick test of the Graph Builder utility

Credit Calculator

Loan Calculator - calculates your loan. It has two types of credit: annuity, differentiated.

HOW TO USE:

At the entrance there are three parameters: the loan amount, term for which the loan is taken (in months), the interest rate, in accordance with these parameters and depending on the type of credit you selected, your repayment plan will be calculated.

Deposit Calculator

deposit calculator - suitable for calculating deposits for a certain period, the functionality allows you to add and subtract from the principal amount, there is interest capitalization.

HOW TO USE:

Enter all the input data and click the calculate button.