Ask Your Question

How to keep 1/sqrt(2) as 1/sqrt(2) ? [the canonical form is not canonical]

asked 2017-03-14 12:20:00 -0500

Laurent B gravatar image

Hi all Using sagetex to make computaion, I would like it to keep radical in the denominator (though I remember my 8 th grade course viewing the canonical form today in a pdf file seems odd ) so something like 1/sqrt(2) would not be written as sqrt(2)/2 as it is normally. I saw this related link : but for me the command 1/sqrt(2).maxima_methods().rootscontract().simplify() gives also a "canonical" result. Cheers,

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-03-15 08:36:52 -0500

ndomes gravatar image
expr = sqrt(2).power(-1,hold=True)

Unfortunately this is not consistent . 3*expr is evaluated to 3/2*sqrt(2)

We can keep expr untouched with an effort:

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


Asked: 2017-03-14 12:20:00 -0500

Seen: 178 times

Last updated: Mar 15 '17