Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

student t pdf

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?

student t pdf

Here's a code for student t pdf.

var("s n t") t")

assume(n, 'integer') '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) 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") t")

assume(n, 'integer') '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) 2^(n/2)),s,0,infinity)

tdist

Could any one help me about this?

click to hide/show revision 3
No.3 Revision

student t pdf

Here's a code for student t pdf.

var("s n t")

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'integer') assume(n>0) tdist=integral(sqrt(s/n)*1/sqrt(2*pi)*exp(-s*t^2/(2*n))*exp(-s/2)*s^(n/2-1)/(gamma(n/2)*2^(n/2)),s,0,infinity) tdist

And it says, "TypeError: 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?"integer?

The funny thing is when I add n=5 or n=3, there's no error!

var("s n t")

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'integer') n=3 tdist=integral(sqrt(s/n)*1/sqrt(2*pi)*exp(-s*t^2/(2*n))*exp(-s/2)*s^(n/2-1)/(gamma(n/2)*2^(n/2)),s,0,infinity) tdist

Could any one help me about this?

click to hide/show revision 4
No.4 Revision

student t pdf

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(2*pi)*exp(-s*t^2/(2*n))*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(2*pi)*exp(-s*t^2/(2*n))*exp(-s/2)*s^(n/2-1)/(gamma(n/2)*2^(n/2)),s,0,infinity)
tdist

Could any one help me about this?

student t pdf

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(2*pi)*exp(-s*t^2/(2*n))*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(2*pi)*exp(-s*t^2/(2*n))*exp(-s/2)*s^(n/2-1)/(gamma(n/2)*2^(n/2)),s,0,infinity)
tdist

Could any one help me about this?

EDIT : Actually, I tried this on MATHLAB to fail.

   My last hope would be Mathematica? wolframalpha.com says it's timed out!