First, I am not even sure this is the right forum for this question, so if anyone wants to switch it to a more appropriate one, I would be grateful.(adsbygoogle = window.adsbygoogle || []).push({});

Secondly, the question here is on one specific point of Python from a mathematical point of view. I neither know nor am learning how to program, but I am interested in one point: how Python deals with infinity. From what I understand from Googling, it uses scipy.isinf or float (inf) [or float(-inf)] either as

an overflow response, or

division by zero, or

as a large (10^309 ?) [or small, -10^309 or whatever] number in something like integration, or

as a value so that any number is less than it (or, for -inf, greater than it), or

division by infinity = 0.

Is this a fair summary for the non-programmer? Any corrections would be highly appreciated.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Python Python for Dummies: what does scipy.inf really do?

Loading...

Similar Threads for Python Dummies does |
---|

Python for vector files |

Practicing Python and R at the same time |

Python (VPython) Can someone help me with my orbit simulator? |

Python Create a sign-out sheet in Python |

Python How can I run Python by getting values from Matlab |

**Physics Forums | Science Articles, Homework Help, Discussion**