Ask Your Question
1

Rational numerical expressions not handled by simplify_full ?

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

c.p. gravatar image

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 +0200

achrzesz gravatar image

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

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 +0200

Seen: 71 times

Last updated: Jul 05 '23