Question: How to integrate a function which includes a proc?

I want to integrate a function which includes a proc. For example

P:=proc(t,w::list)

local v;

v:=choose an element from the list w, according to the value of t

return v

end proc

and my integrand is like this:

F:=(a,b,c,d)->a*b*c*P(d)

When I want to integrate F, using evalf(Int(F(1,2,3,d),d=1..2)), Maple always said cannot determine if the expression is true or false: d < xxx (since i used condition branch in the proc).

I tried to add ''(uneval), like:

F:=(a,b,c,d)->a*b*c*'P(d)'

And in simple test case, it works. But when i put my very complex object in, i met the same problem.

Is there some way to integrate functions including a proc?

Thanks.

 

 

Please Wait...