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

Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
Post Reply
sohail
Posts: 2
Joined: Wed Oct 16, 2019 9:50 pm

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

Post by sohail » Wed Oct 16, 2019 10:01 pm

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

mgates3
Posts: 911
Joined: Fri Jan 06, 2012 2:13 pm

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

Post by mgates3 » Thu Oct 17, 2019 9:41 am

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

sohail
Posts: 2
Joined: Wed Oct 16, 2019 9:50 pm

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

Post by sohail » Fri Oct 18, 2019 10:31 pm

Thanks Mark.

Post Reply