Programar em C/Operações matemáticas (Avançado): diferenças entre revisões

[edição não verificada][edição não verificada]
Conteúdo apagado Conteúdo adicionado
Thiagol (discussão | contribs)
Thiagol (discussão | contribs)
Linha 99:
===As funções <code>log</code> e <code>log10</code>===
 
TheAs funções <code>log</code> functionscomputam computeo thelogaritmo natural ('''not''' common) logarithm of thedo argumentargumento ande returnretornam theo resultresultado. AUm "domain error" occursocorre ifse theo argumentargumento isfor negativenegativo. AUm "range error" maypode occurocorrer ifse theo argumentargumento isfor zero.
 
TheAs funçõs <code>log10</code> functionscomputam computeo thelogaritmo commoncomum (base-10) logarithmdo ofargumento thee argumentretornam ando return the resultresultado. AUm "domain error" occursocorre ifse theo argumentargumento isfor negativenegativo. AUm "range error" may occurocorre ifse theo argumentargumento isfor zero.
 
#include <math.h>