Article View: pl.comp.lang.python
Article #21399Re: przypisac nieskonczonosc
From: Bart Ogryczak
Date: Tue, 16 Oct 2007 12:41
Date: Tue, 16 Oct 2007 12:41
29 lines
2316 bytes
2316 bytes
On Oct 16, 2:03 pm, Seweryn Habdank-Wojewódzki <shw_m...@wp.pl> wrote: > Witam > > Bart Ogryczak wrote: > > Windows: > >>>> 1e300*1e300 > > 1.#INF > > > Solaris: > >>>> 1e300*1e300 > > Infinity > > > Linux: > >>>> 1e300*1e300 > > inf > > To jest raczej problem implementacji i reprezentacji tekstowej. Nie tylko tekstowej. Spróbuj zrobic z tego binarne pikle. > W każdym razie w C używasz funkcji isnan(x) lub isinf(x). Te funkcje > zwracają stosowne wartości. > isnan(x) => 0 jeśli x nie jest NaN. 1 jesli x jest NaN. > > isinf(x) => -1 jeśli x jest -Inf, 1 jeśli x jest Inf, 0 w przeciwnym > przypadku. Ale jak to pomaga w stworzeniu stalej?
Technical Details
Message-ID:
<1192538475.635966.79370@z24g2000prh.googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!opal.futuro.pl!news.internetia.pl!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!postnews.google.com!z24g2000prh.googlegroups.com!not-for-mailReferences:
<20071016103416.e69a7bc7.sulsa@dontmail.me> <1192526464.122236.16990@v23g2000prn.googlegroups.com> <ff21gb$l2i$1@news.vectranet.pl> <1192533601.905010.17440@y27g2000pre.googlegroups.com> <ff28jc$rkt$1@news.vectranet.pl>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!opal.futuro.pl!news.internetia.pl!news.nask.pl!news.nask.org.pl!news.uni-stuttgart.de!news.belwue.de!news.tiscali.de!tiscali!newsfeed1.ip.tiscali.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!198.186.194.251.MISMATCH!news-out.readnews.com!transit4.readnews.com!postnews.google.com!z24g2000prh.googlegroups.com!not-for-mail From: Bart Ogryczak <B.Ogryczak@gmail.com> Newsgroups: pl.comp.lang.python Subject: Re: przypisac nieskonczonosc Date: Tue, 16 Oct 2007 12:41:15 -0000 Organization: http://groups.google.com Lines: 31 Message-ID: <1192538475.635966.79370@z24g2000prh.googlegroups.com> References: <20071016103416.e69a7bc7.sulsa@dontmail.me> <1192526464.122236.16990@v23g2000prn.googlegroups.com> <ff21gb$l2i$1@news.vectranet.pl> <1192533601.905010.17440@y27g2000pre.googlegroups.com> <ff28jc$rkt$1@news.vectranet.pl> NNTP-Posting-Host: 195.149.215.221 Mime-Version: 1.0 X-Trace: posting.google.com 1192538476 22541 127.0.0.1 (16 Oct 2007 12:41:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 16 Oct 2007 12:41:16 +0000 (UTC) In-Reply-To: <ff28jc$rkt$1@news.vectranet.pl> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 oliver (NetCache NetApp/6.0.4P1D4) Complaints-To: groups-abuse@google.com Injection-Info: z24g2000prh.googlegroups.com; posting-host=195.149.215.221; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit