May-08-2020, 02:20 PM
Irrational, not imaginary. My mistake.
You can't check it from a float, because the float has no information if it's a rational or an irrational number.
A float has a finite precision.
If you get the value
We know that this value is pi and pi is irrational. From where should the computer know this without any context?
Im not very deep in math, but I think you can maybe detect if a result should be irrational or not after a calculation.
You can't check it from a float, because the float has no information if it's a rational or an irrational number.
A float has a finite precision.
If you get the value
3.141592653589793
as only information, no chance to say if it's rational or irrational.We know that this value is pi and pi is irrational. From where should the computer know this without any context?
Im not very deep in math, but I think you can maybe detect if a result should be irrational or not after a calculation.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!