Sqrt(r) is not rational, where r is a perfect square
Posted: 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
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