Ask Your Question
1

Radical numerical expressions not handled by simplify_full ?

asked 2023-07-05 07:30:42 +0100

c.p. gravatar image

updated 2024-07-10 08:01:19 +0100

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-07-05 08:35:11 +0100

achrzesz gravatar image

updated 2023-07-05 12:59:28 +0100

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

1 follower

Stats

Asked: 2023-07-05 07:30:42 +0100

Seen: 210 times

Last updated: Jul 10