numerical double integration symbolically and numerically

2 次查看(过去 30 天)
Hi,
I am trying to evaluate a double integral Int1 Int2 f(x,t) dt dx. I want to evaluate the t-integral symbolically and the x-integral numerically.
Any suggestion how to implement.
thanks

回答(2 个)

Roger Stafford
Roger Stafford 2014-8-9
编辑:Roger Stafford 2014-8-9
The part of what you propose, R yan, that is not certain of success is whether matlab can succeed in finding a symbolic expression for the inner integral, int(f(x,t),t). That is anything but certain. Many functions cause 'int' to fail to find an explicit solution.
If it does find an explicit solution, that solution will depend only on x provided you have given limits of integration to the variable t, so it should be possible to do numerical integration with it provided there are no problems of singularities or divergence.
However, matlab does have functions that can compute double integrals numerically, in case your inner integration fails symbolically.

Star Strider
Star Strider 2014-8-9
It depends on the function and would only work if you can eliminate t in the symbolic integration, so that the resulting function is only a function of x, and a relatively uncomplicated one at that.
Then use matlabFunction to create an anonymous function from that result as a function of x and do the numerical integration with integral.
It’s possible, but no promises that it will be successful.

类别

Help CenterFile Exchange 中查找有关 Calculus 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by