Ask Your Question

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

asked 2015-02-09 00:40:48 +0200

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 16:28:48 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-02-09 01:16:54 +0200

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-09 00:40:48 +0200

Seen: 310 times

Last updated: Feb 09 '15