Clc-js
clc.js is a lightweight math calculation library.
This is an open-source javascript library for math calculations and computations.
This library is pretty new, this README will be updated with new informations.
For more math formulas and computations, please open issues.
Usage
npm install clc-js
var clc = ; // Calculation of distance between two points (x1,y1) <----> (x2,y2)clc; // returns -> 5 // Calculation of Center coordinates of three points (x1,y1) (x2,y2) (x3,y3)clc // returns -> {x: 3, y: 4} // Calculation of area of circle by given radiusclc // returns -> 28.274333882308138 // Calculation of perimeter of circle by given radiusclc // returns -> 18.84955592153876 // Calculation of hypotenuse by given legsclc // returns -> 5 // Calculation of simplified interest rateclc; // returns -> 8979.281630110647 // Calculation of compound interest rateclc // returns -> 9043.629747912944 // Calculation of decimal to binaryclc // returns -> '11000' // Calculation of decimal to hexadecimalclc // returns -> 'E' // Calculation of logarithmclc // returns -> 3 // Calculation of logarithm by base eclc // returns -> 1.6094379124341003 // Calculation of area of squareclc // returns -> 16 // Calculation of factorial of a numberclc // returns -> 120 // Calculation of Permutationclc // returns -> 20 // Calculation of Combinationclc // returns -> 10
License
MIT License
Copyright (c) 2016 Alperen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.