Ask Your Question
0

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

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

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

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Seen: 334 times

Last updated: Feb 09 '15