1.1.2 • Published 4 years ago

strcalc v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

strcalc

Smart string calculator with variables.
Enter an expression of any complexity into field and get result instantly.
Use own variables. In addition, may contain expression too.

Usage

  • Include calc.css and calc.js files from dist directory into you page.
  • Call the node element calc() method to render calculator inside
    Example:
document.querySelector('#calc').calc() 

or use as npm module
Example:

import { Calc } from 'strcalc'
new Calc(document.querySelector('#calc'), true)

If flag true, styles will add as text inside style element
By default styles not include

Availiable operations:

^ / * + - %

Availiable functions:

sin()  
cos()  
abs()  
sqrt()  
exp()  
tg()  
ctg()  
logN()
ln() 
sec()  
cosec()  
arcsin()  
arccos()  
arcctg()  
sh()  
ch()  
th()  
cth()  
sgn()  
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago