Ask Your Question

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

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

this post is marked as community wiki

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


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


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


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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

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

calc314 gravatar image

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

var('a 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


Asked: 2015-02-08 17:40:48 -0600

Seen: 49 times

Last updated: Feb 08 '15