Thank you very much for the reply.  In the integration specified, f is a 
function of y 

When I use the following as suggested by you,

x, y, a= var('x,y,a')
f = function("f", y)
integrate(integrate((diff(f,y))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0, pi), 
y, -pi, pi)

Sagemath is dumping  an error. I would appreciate if you can helping me 
sorting out the problem in evaluating the integral.

Thank you once again,

Regards,
sairam

On Sunday, July 26, 2015 at 4:38:59 PM UTC+5:30, David Joyner wrote:
>
> In the integrand below, is f simply a function of y or does it also depend 
> on x?
>
>
> On Jul 26, 2015, at 04:25, sairam <sairam.t...@gmail.com <javascript:>> 
> wrote:
>>
>>  
>> <https://lh3.googleusercontent.com/-HGLRuiudDNI/VbRfkfqbiNI/AAAAAAAAAFk/gVw9Ejc6pyo/s1600/CodeCogsEqn.gif>
>>
>> Hi
>>
>> I am new bie to sagemath and trying to find the analytical integration 
>> for the above.
>>
>> I have used the following expressions in sagemath 
>>
>> x, y, a, f = var('x,y,a,f')
>>
>>
>
> f = function("f", x)
> or
> f = function("f",x,y) 
>
> integrate(integrate((diff(f))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0, pi), 
>> y, -pi, pi) 
>>
>>
> In the first case, you want
>
>
> x, y, a= var('x,y,a')
> f = function("f", x)
> integrate(integrate((diff(f,x))*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0, 
> pi), y, -pi, pi)
>
> which will give you the partially evaluated integral.
>
> The sagemath tutorials have more examples.
> http://doc.sagemath.org/html/en/tutorial/index.html
>
>
>  
>
>> Though it gives output for the above expression, it does not consider the 
>> term differential of f,  can you please let me know how to include the 
>> differential in the integration.
>>
>> If I use the following, which includes differential with respect to y, it 
>> does not run but dumps an error     
>>
>> integrate(integrate((diff(f), y)*(exp(-a*x^2)*cos(y)^2*sin(x)^3), x, 0, 
>> pi), y, -pi, pi)
>>
>> Any help for  solving the above integration will be highly appreciated.
>>
>> Thanks in advance,
>>
>> Regards,
>> sairam
>>
>>
>>  

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-edu+unsubscr...@googlegroups.com.
To post to this group, send email to sage-edu@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-edu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to