Here's a code for student t pdf.
var("s n t") assume(n, 'integer') assume(n>0)
tdist=integral(sqrt(s/n)1/sqrt(2pi)exp(-st^2/(2n))exp(-s/2)s^(n/2-1)/(gamma(n/2)2^(n/2)),s,0,infinity) tdist
And it says, "TypeError: Computation failed since Maxima requested additional constraints (try the command 'assume(n+1)/2>0)' before integral or limit evaluation, for example): Is (n+1)/2 an integer?"
The funny thing is when I add n=5 or n=3, there's no error!
var("s n t") assume(n, 'integer') n=3
tdist=integral(sqrt(s/n)1/sqrt(2pi)exp(-st^2/(2n))exp(-s/2)s^(n/2-1)/(gamma(n/2)2^(n/2)),s,0,infinity) tdist
Could any one help me about this?