version bump 1.1.2: node module cleanup [ci skip]
This commit is contained in:
parent
9ef2c47f04
commit
4d295d7900
|
@ -1,3 +1,5 @@
|
|||
frac.flow.js
|
||||
frac.md
|
||||
test_files/*.tsv
|
||||
ctest/
|
||||
test.js
|
||||
|
@ -7,6 +9,7 @@ Makefile
|
|||
node_modules/
|
||||
coverage.html
|
||||
.travis.yml
|
||||
.eslintrc
|
||||
.jshintrc
|
||||
.jscs.json
|
||||
.flowconfig
|
||||
|
|
18
frac.md
18
frac.md
|
@ -244,21 +244,20 @@ xltestfiles.forEach(function(x) {
|
|||
```json>package.json
|
||||
{
|
||||
"name": "frac",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"author": "SheetJS",
|
||||
"description": "Rational approximation with bounded denominator",
|
||||
"keywords": [ "math", "fraction", "rational", "approximation" ],
|
||||
"main": "./frac",
|
||||
"types": "types",
|
||||
"dependencies": {
|
||||
"voc":"~1.0.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha":"~2.5.3",
|
||||
"voc": "~1.1.0",
|
||||
"mocha": "~2.5.3",
|
||||
"blanket": "~1.2.3",
|
||||
"codepage":"~1.10.0",
|
||||
"@sheetjs/uglify-js":"~2.7.3",
|
||||
"@types/node":"^8.0.7",
|
||||
"codepage": "~1.10.0",
|
||||
"@sheetjs/uglify-js": "~2.7.3",
|
||||
"@types/node": "^8.0.7",
|
||||
"dtslint": "^0.1.2",
|
||||
"typescript": "2.2.0"
|
||||
},
|
||||
|
@ -284,6 +283,8 @@ xltestfiles.forEach(function(x) {
|
|||
And to make sure that test files are not included in npm:
|
||||
|
||||
```>.npmignore
|
||||
frac.flow.js
|
||||
frac.md
|
||||
test_files/*.tsv
|
||||
ctest/
|
||||
test.js
|
||||
|
@ -293,6 +294,7 @@ Makefile
|
|||
node_modules/
|
||||
coverage.html
|
||||
.travis.yml
|
||||
.eslintrc
|
||||
.jshintrc
|
||||
.jscs.json
|
||||
.flowconfig
|
||||
|
|
3
frac.py
3
frac.py
|
@ -49,10 +49,9 @@ def med(x, D, mixed=False):
|
|||
def cont(x, D, mixed=False):
|
||||
"""Generate fraction representation using Aberth method"""
|
||||
B = abs(x)
|
||||
I = int
|
||||
P_2, P_1, P, Q_2, Q_1, Q = 0, 1, 0, 1, 0, 0
|
||||
while Q_1 < D:
|
||||
A = I(B)
|
||||
A = int(B)
|
||||
P = A * P_1 + P_2
|
||||
Q = A * Q_1 + Q_2
|
||||
if (B - A) < 0.00000005:
|
||||
|
|
15
package.json
15
package.json
|
@ -1,20 +1,19 @@
|
|||
{
|
||||
"name": "frac",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"author": "SheetJS",
|
||||
"description": "Rational approximation with bounded denominator",
|
||||
"keywords": [ "math", "fraction", "rational", "approximation" ],
|
||||
"main": "./frac",
|
||||
"types": "types",
|
||||
"dependencies": {
|
||||
"voc":"~1.0.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha":"~2.5.3",
|
||||
"voc": "~1.1.0",
|
||||
"mocha": "~2.5.3",
|
||||
"blanket": "~1.2.3",
|
||||
"codepage":"~1.10.0",
|
||||
"@sheetjs/uglify-js":"~2.7.3",
|
||||
"@types/node":"^8.0.7",
|
||||
"codepage": "~1.10.0",
|
||||
"@sheetjs/uglify-js": "~2.7.3",
|
||||
"@types/node": "^8.0.7",
|
||||
"dtslint": "^0.1.2",
|
||||
"typescript": "2.2.0"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue