bitwise not - not what I expected
Michael Peuser
mpeuser at web.de
Mon Aug 18 10:58:11 EDT 2003
"Grant Edwards" <grante at visi.com> schrieb im Newsbeitrag
news:3f40d077$0$164$a1866201 at newsreader.visi.com...
> In article <bhq01j$tge$03$1 at news.t-online.com>, Michael Peuser wrote:
>
> > A very good point! I might add that this is my no means an exotic
feature.
> > Mathematically speaking there is great charme in computing just inside
the
> > invervall (-1,+1). And if you have no FPU you can do *a lot* of pseudo
real
> > operations. You have get track of the scale of course - it is a little
bit
> > like working with sliding rules if anyone can remember those tools ;-)
>
> Sure. I've got two sitting at home. :)
>
> FWIW, it used to be fairly common for process-control systems
> to define operations only over the interval (-1,+1). This made
> implimentation easy, and the input and output devices
> (temp/pressure sensors, valves, whatnot) all had pre-defined
> ranges that mapped logically to the (-1,+1) interval.
>
> --
Yes it simplifies a lot of matters, even when using full floating point
numbers. Take OpenGL e.g. The colour space is a 1x1x1 cube. Very fine! No
magic numbers near 256 ;-)
Kindly
Michael P
More information about the Python-list
mailing list