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

Remover plotagem gráfica #82

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

Remover plotagem gráfica #82

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

Comments

@lucaspompeun
Copy link
Member

egua/src/lib/eguamat.js

Lines 100 to 115 in 5671a03

module.exports.fun2 = function(a,b,c) {
if (isNaN(a) || a === null)
throw new RuntimeError(
this.token,
"Você deve prover valores para fun2(a,b,c)."
);
n = 2.5;
var arr = [];
var step = (n - (-n)) / (n- 1);
for (var i = 0; i < n; i=i+0.01) {
arr.push(((-n-1.945) + (step * i)));
}
x = arr;
f = x.map(function(x) { return ((x * x * a)+(b * x)+c); });
plot(x,f);//['f(x) ='+f];
};

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

1 participant