/sy-math

A JavaScript Library That Extends The Math Object With Some Powerful Methods

Primary LanguageJavaScriptOtherNOASSERTION

sy-math.js - JavaScript Library That Extends The Native Math Object With Some Powerful Methods

Introduction

sy-math.js Is A Simple,Easy-To-Use,Lightweight JavaScript Library That Extends The Native JavaScript Math Object With Some Powerful Methods.

The Main Purpose Of sy-math.js Is To Simplify Some Mathematician Tasks In JavaScript,For Example,Instead Of Write Several Lines To Figure Out If A Number Is Primitive Or Not,sy-math.js Provides You With A Built-in Method Called isPrimitive() To Do This.

Installation

Just Like Any Other JavaScript Library,To Include sy-math.js Just Use A <script> Tag And Let The src Attribute Point To The Library,For Example:

<script src="includes/sy-math.js"></script>

Usage

Take The Math Object Then Use One Of The Supported Methods In This Library With It,For Example,If You Want To Use The sum() Method,You Can Do The Following:

Math.sum(1,9,7); //Output 17

Supported Methods

In Order To Make This Document Clean And Tidy,The Supported Methods Section Has Been Moved To Specific Document.

You Can See All The Supported Methods Here: https://github.com/Eyad-Syrialover/sy-math/blob/master/supported%20methods.md

WTFPL