convention for infinity | Tamas Papp | 10/18/08 1:54 PM | Hi, I would like to ask if there is a convention for representing infinity. (defun truncated-normal-moment (n mu sigma lower upper) Currently I am using :minusinfinity and :infinity. But I thought it Thanks, Tamas |

Re: convention for infinity | Pascal J. Bourguignon | 10/18/08 2:26 PM | There's no convention. On a specific implementation, (apropos "INFINITY") may give you some
"Our users will know fear and cower before our software! Ship it! |

Re: convention for infinity | Rupert Swarbrick | 10/19/08 6:34 AM | Tamas K Papp <tkp...@gmail.com> writes: > I would like to ask if there is a convention for representing infinity. snip > Currently I am using :minusinfinity and :infinity. But I thought it For what it's worth, Maxima [1] uses the symbols 'inf and Rupert |

Re: convention for infinity | Tamas K Papp | 10/19/08 6:56 AM | Well, at least they are compact. :inf and :minf would be good, I will Tamas |

Re: convention for infinity | Raffael Cavallaro | 10/19/08 8:15 AM | On 2008-10-19 09:56:33 -0400, Tamas K Papp <tkp...@gmail.com> said: > Well, at least they are compact. :inf and :minf would be good, I will lispworks: CL-USER 100 > (let ((pos-inf (* 1000 most-positive-double-float)) double-float positive infinity is printed as: (note that the block comments are printed by lispworks, they are not mine) sbcl: CL-USER> (let ((pos-inf (* 1000 most-positive-double-float)) openmcl and ecl just report a floating point overflow. |

Re: convention for infinity | Tamas Papp | 10/19/08 8:47 AM | Thanks Raffaael, but I am looking for something portable. And maybe I Tamas |

Re: convention for infinity | David Golden | 10/19/08 9:25 AM | Tamas K Papp wrote:
I'd tend to use an unqualified "infinity" in a symbolic math package for I imagine that those, and not the floating point "infinities" are what ( Beyond that, consider aleph numbers... So, sure, it would be nice for IEEE-floating-point-using implementations Just sayin'. As to printable/readable reps, I find SBCL's ones in particular a tad Maybe something like -1D#INFN# , 1D#INFP# , 1D#NANS# , 1D#NANQ# |

Re: convention for infinity | Ari Johnson | 10/19/08 9:50 AM | I don't think that :minf is the best choice, simply because when a |

Re: convention for infinity | Raffael Cavallaro | 10/19/08 12:06 PM | On 2008-10-19 11:47:35 -0400, Tamas K Papp <tkp...@gmail.com> said: > Thanks Raffaael, but I am looking for something portable. My point was that there is no current convention for such quantities This means at the very least that implementations are free to signal (I There is nothing in the standard about infinities, just the constants |