Socket
Book a DemoInstallSign in
Socket

marplejs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

marplejs

The MarpleJS library for Maths

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

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)
  • 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

    Keywords

    javascript-library

    FAQs

    Package last updated on 02 Oct 2020

    Did you know?

    Socket

    Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

    Install

    Related posts

    SocketSocket SOC 2 Logo

    Product

    About

    Packages

    Stay in touch

    Get open source security insights delivered straight into your inbox.

    • Terms
    • Privacy
    • Security

    Made with ⚡️ by Socket Inc

    U.S. Patent No. 12,346,443 & 12,314,394. Other pending.