Why can I not integrate this function?

17 visualizaciones (últimos 30 días)
Nathan Donatell
Nathan Donatell el 3 de Mzo. de 2019
Respondida: Walter Roberson el 3 de Mzo. de 2019
Here is my code in matlab in the picture also with the error that I keep getting when I try to intergrate this function.

Respuestas (1)

Walter Roberson
Walter Roberson el 3 de Mzo. de 2019
You do not have a function. You are working with numeric constants. A/B is a numeric constant. The integral of a numeric constant from 0 to infinity is sign() of the numeric constant times infinity.
int() is reserved from integrating symbolic expressions or symbolic functions.
integral() can be used for numeric integration, but it has to be passed a function handle as the first argument.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by