nguyenphuminh / marplejs

The Marple.js library for simple Math

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


MarpleJS is a light-weight Javascript library for simple Maths

Usage

In your .html file, insert this to the "head" tag:

<script type="text/javascript" src="marple.js"></script>

Functions

  • sum(arr)
  • odd(num)
  • even(num)
  • sumToN(n)
  • sumXToY(x,y)
  • lcm(a,b)
  • gcd(a,b)
  • rndI(a,b)
  • floor(a)
  • toFix(a,b)
  • round(a)
  • PI()
  • square(a)
  • sqrt(a)
  • pow(a,b)
  • divisible(a,b)
  • prime(a)
  • findPrime(a,b)
  • perfectN(a)
  • max(arr)
  • min(arr)
  • sin(a)
  • abs(a)
  • isFin(a)
  • isNaN(a)
  • cos(a)
  • tan(a)
  • Copyrights and License

    Copyrighted © 2020 Nguyen Phu Minh

    This library is licensed under the MIT License

    About

    The Marple.js library for simple Math

    License:MIT License