node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »

numsys

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

  • Implement Number System
  • Predicting AP patterns
  • Predicting GP patterns
  • Adding Math Serieses