Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
void derivada(int x){ int h = Math.Pow(10, (-8)); double df = (func(x + h) - func(x))/h; return df; } onde: x é o ponto que se deseja derivar e func() é a função matemática. P.S. O código está em C#, mas eu sei que é bem similar ao Java e vc não terá dificuldade em "traduzir".
26th Oct 2016, 2:50 AM
Deivity Santos
Deivity Santos - avatar