Skip to content

Commit

Permalink
debuggg
Browse files Browse the repository at this point in the history
  • Loading branch information
Aron-Arboleda committed Dec 18, 2023
1 parent da36d56 commit ab200f0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"source.fixAll": "explicit"
},
"eslint.validate": ["javascript"],
"prettier.useTabs": true,
"prettier.jsxSingleQuote": false,
Expand Down
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/hypothesis-testing.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function hypothesisTesting(parameter, operator, valueReference, n, sampleMean, p
}
claim = altHypo;
}
const z = limitDecimalPoints(((sampleMean - populationMean) / (sd / Math.sqrt(n))), 2);
const z = limitDecimalPoints(((sampleMean - populationMean) / (sd / limitDecimalPoints(Math.sqrt(n), 3))), 2);
const zc = limitDecimalPoints((stats.erf(z / Math.sqrt(2)) / 2 + 0.5), 4);

let PValue;
Expand Down
2 changes: 1 addition & 1 deletion src/ui-linear-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function displayResults(x, y, givendata, labels) {
const a = linearRegValues.a;
const b = linearRegValues.b;
let sign = Math.sign(b) === 1 ? '+' : Math.sign(b) === -1 ? '-' : '0';
const mainEquation = `Y = ${a} ${sign} ${b}x`;
const mainEquation = `Y = ${a} ${sign} ${Math.abs(b)}x`;

const p = document.createElement('p');
p.textContent = `Linear Equation: ${mainEquation}`;
Expand Down

0 comments on commit ab200f0

Please sign in to comment.