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

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

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

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: 902
Joined: Fri Jan 06, 2012 2:13 pm

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

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

Thanks Mark.