Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refatorar função e alterar nome para "pontosAleatorios" #77

Closed
lucaspompeun opened this issue Jan 11, 2021 · 2 comments
Closed

Refatorar função e alterar nome para "pontosAleatorios" #77

lucaspompeun opened this issue Jan 11, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@lucaspompeun
Copy link
Member

egua/src/lib/eguamat.js

Lines 188 to 203 in 5671a03

module.exports.pale = function(n) {
if (isNaN(n) || n === null)
throw new RuntimeError(
this.token,
"Você deve prover valores para pale(n)."
);
if (ex == undefined) { ex = 0; }
var x = [];
x[0] = 100;
for (var i = 1; i < n; i++) {
x[i] = ex + x[i - 1] + Math.random() * 2 - 1;
}
var xx = aprox(x, 2);
console.log(xx);
return xx;
};

@lucaspompeun lucaspompeun added the invalid This doesn't seem right label Jan 11, 2021
@leonelsanchesdasilva
Copy link
Contributor

Podia mudar o nome também, não? module/exports.pontosAleatorios, por exemplo.

@lucaspompeun lucaspompeun changed the title Refatorar função Refatorar função e alterar nome para "pontosAleatorios" Mar 1, 2021
@lucaspompeun
Copy link
Member Author

Podia mudar o nome também, não? module/exports.pontosAleatorios, por exemplo.

Acho uma melhoria muito válida!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants