As infinity defined , it cannot be counted but is there any way to get appoximate value of infinity.
thanx
---rush_shri
Printable View
As infinity defined , it cannot be counted but is there any way to get appoximate value of infinity.
thanx
---rush_shri
infinity is infinity - by definition it cannot have numerical value.
If you managed to assign it even an approximate value then it would cease to be infinity.
I think in C# you can make computations with Infinity. Try this:
int x=5;
Console.Writeline((x/0));
Don't ask me what datatype to use for infinity though. I have very little experience with this. But I'm sure you will find out by trial and error. :)
Oh ... ofcourse don't expect too much of this.
As you will know most of the results from these calculations are 0, infinity and undefined results. So not much to see :) :
Infinity * any number = Infinity
Infinity + any number = Infinity
except ...
Infinity * 0 = undefined.
Infinity/Infinity = undefined
Infinity - Infinity = undefined
0/0 = undefined
some examples of strange things that follow the normal rule:
0/infinity = 0
infinity/0 = infinity
Actually you can count some infinite sets. But as Bushmobile pointed out, if you want to define infinity as some value it is no longer infinite be cause ever computable value is a finite value.
If you need to make computations with infinity use limits. Many funtions are there are formulae to calculate he exact value and if not you can create some sort of approximation algorithm.