🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27548

Re: Interpolacja Liniowa

#27548
From: Piotr Chamera
Date: Sun, 27 Jun 2010 11:14
29 lines
1475 bytes
W dniu 2010-06-27 11:33, jcubic pisze:
> Pierwszy przypadek:
>
>>> f = get_interpolated(1, 1, 1000, 200)
>>> f(100)
> 0
>
> Drugi przypadek
>>> f = get_interpolated(1,1, 1000, 200)
>>> f(100)
> 1
>>> f(200)
> 1
>>> f(300)
> 1

Porównaj

 >>> f = get_interpolated(1, 1, 1000, 200)
 >>> f (100)
0

z tym

 >>> g = get_interpolated(1.0, 1.0, 1000.0, 200.0)
 >>> g(100.0)
20.72072072072072

i wyciągnij wnioski :)
Technical Details
Message-ID: <i07bqn$voi$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
References: <76da39d8-1875-4b7e-b66b-a1ef32499279@u26g2000yqu.googlegroups.com> <i035le$ioj$1@news.onet.pl> <ff554f21-6f55-41f5-9888-95f4c1d731cf@x21g2000yqa.googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Piotr Chamera <piotr_chamera@poczta.onet.pl>
Newsgroups: pl.comp.lang.python
Subject: Re: Interpolacja Liniowa
Date: Sun, 27 Jun 2010 13:14:20 +0200
Organization: http://onet.pl
Lines: 29
Message-ID: <i07bqn$voi$1@news.onet.pl>
References: <76da39d8-1875-4b7e-b66b-a1ef32499279@u26g2000yqu.googlegroups.com>  <i035le$ioj$1@news.onet.pl> <ff554f21-6f55-41f5-9888-95f4c1d731cf@x21g2000yqa.googlegroups.com>
NNTP-Posting-Host: public51933.xdsl.centertel.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1277637271 32530 79.163.202.221 (27 Jun 2010 11:14:31 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Sun, 27 Jun 2010 11:14:31 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.9.1.10) Gecko/20100512 Lightning/1.0b1 Thunderbird/3.0.5
In-Reply-To: <ff554f21-6f55-41f5-9888-95f4c1d731cf@x21g2000yqa.googlegroups.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit