From: Jaime V. <vi...@fe...> - 2011-02-16 09:26:28
|
On Wed, 2011-02-16 at 01:22 +0100, José Luis Torre Hernández wrote: > Estoy tratando de obtener el valor numérico de la función: > 4 2 > 7x - 3x + 27x +328 > f(x) := ------------------------------- > | 2 + sin x | > > He probado con > > integrate(f(x), x, 2, 8); > > y con > > ldefint(f(x), x, 2, 8); > > Ambos resultados son simbólicos (en el segundo con límites) y no > consiguo obtener el valor numérico (que debe ser aproximadamente > 23241,32 ) Para calcular integrales en forma numérica, puedes usar la función quad_qags: (%i2) f(x):= (7*x^4-3*x^2+27*x+238)/abs(2+sin(x)); (%o2) f(x):=(7*x^4-3*x^2+27*x+238)/abs(2+sin(x)) (%i3) quad_qags(f(x),x,2,8); (%o3) [22923.46970052615,3.485965899585608E-5,63,0] eso quiere decir que el resultado obtenido por Maxima es 22923.46... Los otros 3 números te dan alguna información sobre el resultado numérico; consulta la descripción de quad_qags en el manual. Un saludo, Jaime |