Ask Your Question
0

why I can not get a numerical answer by show(integral(x^x,x,1,2))

asked 2016-11-18 03:34:19 +0200

this post is marked as community wiki

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

show(integral(x^x,x,1,2))

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-11-18 13:59:47 +0200

ndomes gravatar image

updated 2016-11-18 14:04:39 +0200

You can use numerical_integral instead of integral

numerical_integral(x^x,1,2)

or explicitly order a numerical answer

integral(x^x,x,1,2).n()
edit flag offensive delete link more

Comments

Equivalently, feed the whole expression to $N$

sage: N(integral(x^x,x,1,2)) #2.0504462345347307

Also, the same syntax $N$ exists in SymPy and the equivalent of $f.n()$ in SymPy is $f.evalf()$

A.Alharbi gravatar imageA.Alharbi ( 2016-11-20 23:23:02 +0200 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2016-11-18 03:34:19 +0200

Seen: 2,425 times

Last updated: Nov 18 '16