Ask Your Question
1

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

asked 2020-04-21 06:36:25 +0100

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 09:54:21 +0100

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 10:10:33 +0100 )edit

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

Sébastien gravatar imageSébastien ( 2020-04-21 14:14:26 +0100 )edit

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

Sébastien gravatar imageSébastien ( 2020-06-24 22:17:09 +0100 )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-21 06:31:32 +0100

Seen: 420 times

Last updated: Apr 21 '20