Ask Your Question
0

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

asked 2016-11-17 20:34:19 -0500

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 06:59:47 -0500

ndomes gravatar image

updated 2016-11-18 07:04:39 -0500

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 16:23:02 -0500 )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-17 20:34:19 -0500

Seen: 42 times

Last updated: Nov 18 '16