is it possible to build infinity as a number in python ? just like we are assigning int or float , complex to varaible. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

is it possible to build infinity as a number in python ? just like we are assigning int or float , complex to varaible.

I'm not taking about string to represent infinity '∞'. I'm taking about +∞ and -∞ so that we can use this calculus expression

4th Jun 2021, 11:47 AM
lisa
2 Réponses
+ 1
Yes, there is inf in math and in numpy
4th Jun 2021, 12:02 PM
Lisa
Lisa - avatar
0
Infinity is something too large or too small to be quantised, so u cannot use a number to represent it. In other it is a symbol used to tell that sth is too large or too small to measure.
4th Jun 2021, 12:33 PM
Kirabo Ibrahim
Kirabo Ibrahim - avatar