Page 1 of 1

Sqrt(r) is not rational, where r is a perfect square

Posted: Wed Oct 16, 2019 10:01 pm
by sohail
HI,
This might be very trivial questions. Its about calculating Sqrt(r), where r is in Rationals(). I am calculating Sqrt(4) and its giving me answer "2.00000000000000000000000000000". And when I ask "Sqrt(4) in Rationals();" then its giving me false. I want to find a way where Sqrt(r), if r is a perfect square, belong to Rationals(). Any help?

Sohail

Re: Sqrt(r) is not rational, where r is a perfect square

Posted: Thu Oct 17, 2019 9:41 am
by mgates3
I think you are on the wrong forum. This forum is for MAGMA, the GPU library for linear algebra (http://icl.utk.edu/magma/). It sounds like you want MAGMA, the computational algebra system (http://magma.maths.usyd.edu.au/magma/).
-mark

Re: Sqrt(r) is not rational, where r is a perfect square

Posted: Fri Oct 18, 2019 10:31 pm
by sohail
Thanks Mark.