Ask Your Question
0

Does Sage accept the nth root with letters a and b?

asked 2015-02-08 17:40:48 -0500

this post is marked as community wiki

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

Hello!

Before installing Sage, I would like to know it accepts the nth root with letters a and b. For example:

sqrt(a+sqrt(b))*sqrt(a-sqrt(b))*sqrt(a^2-b)

LaTeX: \[\sqrt {a + \sqrt b } *\sqrt {a - \sqrt b } *\sqrt {{a^2} - b} \]

Wolfram Alpha: Sqrt[a+Sqrt[b]]*Sqrt[a-Sqrt[b]]*Sqrt[a^(2)-b]

Does it accept this formula with letters?

Thank you for your attention, understanding and helping!

edit retag flag offensive close merge delete

Comments

You can test code, like the answer below, on a Sage Cell server without having Sage installed.

dazedANDconfused gravatar imagedazedANDconfused ( 2015-02-09 09:28:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-08 18:16:54 -0500

calc314 gravatar image

Yes, Sage does symbolic computation. You can define variables with the var command as below.

var('a b')
sqrt(a+sqrt(b))*sqrt(a-sqrt(b))*sqrt(a^2-b)
edit flag offensive delete link more

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: 2015-02-08 17:40:48 -0500

Seen: 56 times

Last updated: Feb 08 '15