Ask Your Question
1

Is there a way to integrate sqrt(x+sqrt(x)) in Sage?

asked 2020-04-20 23:36:25 -0500

anonymous user

Anonymous

Hello, I want to get indefiniteIntegral of sqrt(x+sqrt(x)), But in Sage, I get nothing but integrate(sqrt(x + sqrt(x)), x).

sage: x = var('x')
sage: h = sqrt(x+sqrt(x)) 
sage: h.integral(x)

Is there a way to integrate this function?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2020-04-21 02:54:21 -0500

Sébastien gravatar image

With optional package fricas (installable with sage -i fricas), it does something:

sage: integrate(sqrt(x + sqrt(x)), x, algorithm='fricas')
1/12*(8*x + 2*sqrt(x) - 3)*sqrt(x + sqrt(x)) + 1/16*log(4*sqrt(x + sqrt(x))*(2*sqrt(x) + 1) + 8*x + 8*sqrt(x) + 1)

But indeed, maxima, sympy and giac have trouble with it:

sage: integrate(sqrt(x + sqrt(x)), x, algorithm='maxima')
integrate(sqrt(x + sqrt(x)), x)
sage: integrate(sqrt(x + sqrt(x)), x, algorithm='sympy')
integrate(sqrt(x + sqrt(x)), x)
sage: integrate(sqrt(x + sqrt(x)), x, algorithm='giac')
...
TypeError: An error occurred running a Giac command:  ...
edit flag offensive delete link more

Comments

Thank you for helping me!

licheng gravatar imagelicheng ( 2020-04-21 03:10:33 -0500 )edit

The problem with giac might be related to https://trac.sagemath.org/ticket/28913

Sébastien gravatar imageSébastien ( 2020-04-21 07:14:26 -0500 )edit

It was not related to #28913, I created https://trac.sagemath.org/ticket/29966

Sébastien gravatar imageSébastien ( 2020-06-24 15:17:09 -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

1 follower

Stats

Asked: 2020-04-20 23:31:32 -0500

Seen: 47 times

Last updated: Apr 21