From: Narendra on
Is there any integration function (Like quad) accept input f(x,y) and give output as a function of x after doing integration with respect to y for given limits... so that after manipulating, modifying and involving some other function of x, Integrate again with respect to x.
From: Steven Lord on

"Narendra " <narenchugh(a)gmail.com> wrote in message
news:hsrbh7$iv0$1(a)fred.mathworks.com...
> Is there any integration function (Like quad) accept input f(x,y) and give
> output as a function of x after doing integration with respect to y for
> given limits... so that after manipulating, modifying and involving some
> other function of x, Integrate again with respect to x.

See INT in Symbolic Math Toolbox.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ


From: Narendra on
"Steven Lord" <slord(a)mathworks.com> wrote in message <hsrfqp$c7p$1(a)fred.mathworks.com>...
>
> "Narendra " <narenchugh(a)gmail.com> wrote in message
> news:hsrbh7$iv0$1(a)fred.mathworks.com...
> > Is there any integration function (Like quad) accept input f(x,y) and give
> > output as a function of x after doing integration with respect to y for
> > given limits... so that after manipulating, modifying and involving some
> > other function of x, Integrate again with respect to x.
>
> See INT in Symbolic Math Toolbox.
>
> --
> Steve Lord
> slord(a)mathworks.com
> comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
>

Sir,
I tried int
e.g.For Given

f(x,y)= x*y+y^2 when x-y>0 ,
f(x,y)= x*y o.w.

Limits of X=0 to 1 and Y=0 to 1
I Find
Integration [{Integration ( f (x,y) ) dy }^2 ] x dx
...
I use syms , splitting the fun on y=x and i find
>> syms s y
int( ( (int(x*y+y^2,y,0,x) + int(x*y,y,x,1) )^2) *x , x , 0 , 1)
ans =
19/144...
result i checked manually supported by FORTRAN too.
Here the issue is ..
-I want to incorporate fun with if statement.
-f(x,y) is bunch of available statistical functions.. for variable input.

I am searching a function for integration take input f(x,y) and limits of y.. integrate with respect to y and give out put as g(x). without using syms..
actually when i use syms..
I am not able to involve statistical function in f(x,y) as they give numerical values.