numsys

0.0.4 • Public • Published

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

Dependents (0)

Package Sidebar

Install

npm i numsys

Weekly Downloads

1

Version

0.0.4

License

ISC

Last publish

Collaborators

  • plasmashadow