First time here? Check out the FAQ!

Ask Your Question
1

Radical numerical expressions not handled by simplify_full ?

asked 1 year ago

c.p. gravatar image

updated 0 years ago

To simplify rational

sqrt(21)*sqrt(6)

to,

3*sqrt(14)

'what can be done? Failed with full_simplify().

Apologies for the simplicity of the question.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 1 year ago

achrzesz gravatar image

updated 1 year ago

One can use for example

from sympy import simplify
simplify(sqrt(21)*sqrt(6))

3*sqrt(14)

or

giac('simplify(sqrt(21)*sqrt(6))')

3*sqrt(14)

or

giac('normal(sqrt(21)*sqrt(6))')    

3*sqrt(14)

or

maxima('rootscontract(sqrt(21)*sqrt(6))')

3*sqrt(14)

or

(sqrt(21)*sqrt(6)).canonicalize_radical()

3*sqrt(7)*sqrt(2)
Preview: (hide)
link

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: 1 year ago

Seen: 238 times

Last updated: Jul 10 '24