Skip to content

Commit c93665e

Browse files
authored
Merge pull request #6 from prskid1000/master
Examples Added
2 parents 816b1aa + 2a88a23 commit c93665e

24 files changed

+115
-140
lines changed

Examples/diophantine.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.diophantine(1, 1, 2));

Examples/diphantine.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

Examples/divisor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.getDivisor(56));

Examples/dixon.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.Dixon(56));

Examples/euclidean.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.euclidean(34, 68));

Examples/euler_totient.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.euler_totient(56));

Examples/extended.euclidean.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

Examples/fibonacci.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.fibn(100));

Examples/karatsuba.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.karatsuba(100,789));

Examples/leaky_relu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
var mathlib = require('../lib/cpmath.js');
2+
console.log(mathlib.leaky_relu(56));

0 commit comments

Comments
 (0)