Integration of a piecewise multivariable function
3 次查看(过去 30 天)
显示 更早的评论
I have a function I need to integrate. The function is a product of 2 functions, one a function in x and the the other a piecewise function in t and x. The piecewise function is something like for rho(x) (where rho is some function) < t, f(x,t) = 0, for rho(x)<t<2rho(x), f(t,x) = rho(x) - t, and for t>2rho, f(t,x) = -rho(x). I want to integrate with respect to x with bounds of Inf and -Inf (100 would do a good enough job as infinity for my purposes so I can just use that). I know the integral is not analytic, but I do know that I should get back a piecewise function in t. I cannot seem to figure it out. Anyone have any tips?
3 个评论
Paul
2021-7-31
编辑:Paul
2021-8-1
Can you clarify the piecewise function f(x,t)? The first condition is:
rho(x) < t
but the second condition is
rho(x) < t < 2*rho(x)
Those conditions overlap. Should the first condition be t < rho(x) ?
Also, with rho(x) = sqrt(1-x^2) it would seem the integrand would become complex for abs(x) > 1. But the integration wrt x is over -inf to inf. Is this problem supposed to cover complex variables?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Function Creation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!