Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

numsys

plasmashadow2ISC0.0.4

Number System parser

readme

numsys.js

Build Status NPM Version NPM Downloads Join the chat at https://gitter.im/plasmashadow/numsys

Description:

Predict the next value of ap and gp sequences. Convert from one number system to another number system. More docs will be given once done.

Number System:

Supports 4 major number systems such as

  • Decimal
  • Octal
  • Hexadecimal
  • Binary

    var ns = require('numsys');
    
    var num = ns.Number(3);
    console.log(num.toBinary().getValue());
    
    var num = ns.Number("1110", "binary");
    console.log(num.getValue()) // returns a decimal
    
    var num = ns.Number("34", "octal");
    console.log(num.toHex().getValue()); // return a hex value
    

Predict AP Series

    var ns = require('numsys');

    var num = ns.LinearSeries([1,2,3]);

    //finding the series look up sum

    var num = ns.LinearSeries.prototype.findSum(1, 5, 1000);
    var product = ns.LinearSeries.prototype.findProduct(1,5, 2000);

    //Generating AP Series
    var series = ns.LinearSeries.prototype.produce(1, 2, 10);
    console.log(series.next());
    console.log(series.prev()); //view the previous step
    console.log(series.prev(true)); // reset to previous step
    console.log(series.getValues());

RoadMap

  • <input checked="" disabled="" type="checkbox"> Implement Number System
  • <input checked="" disabled="" type="checkbox"> Predicting AP patterns
  • <input disabled="" type="checkbox"> Predicting GP patterns
  • <input disabled="" type="checkbox"> Adding Math Serieses