Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question
0

'negative number to a fractional power not real' while computing inegral

asked 9 years ago

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Hi

I want to compute the following integral:

B=40
Ef=1.13*10^(-18)
KT=4.03*10^(-21)
mu=1.732*9.27*10^(-24)
f(t)=(sin(t)*(cos(t))^(3/2))/(exp((B*mu*cos(t)-Ef)/KT)+1)
numerical_integral(f,0,pi)

However, it gives me an error

"Exception ValueError: ValueError('negative number to a fractional power
not real',) in 'sage.gsl.integration.c_ff' ignored"

Can somebody resolve this?

Thanks and regards Ajit Kumar

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

calc314 gravatar image

Since cos(t) is negative for π/2<tπ, computing with (cos(t))3/2 is an issue. I do not think numerical_integral will handle complex values, but I could be wrong.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 238 times

Last updated: May 19 '15