Re: ELF detector

From: John Woodgate (jmw_at_jmwa.demon.contraspam.yuk)
Date: 09/26/04


Date: Sun, 26 Sep 2004 09:38:15 +0100

I read in sci.electronics.design that Ed Price <edprice@cox.net> wrote
(in <q0v5d.74623$9Y5.54225@fed1read02>) about 'ELF detector', on Sun, 26
Sep 2004:
>
>"John Woodgate" <jmw@jmwa.demon.contraspam.yuk> wrote in message
>news:bkJTvRCl5mVBFwXa@jmwa.demon.co.uk...
>>I read in sci.electronics.design that Ken Smith
>> <kensmith@green.rahul.net> wrote (in <cj4o62$g7l$8@blue.rahul.net>)
>> about 'ELF detector', on Sat, 25 Sep 2004:
>>
>>>I doubt software can do it. You need to divide by zero. Most
>>>programmers have a hard time writing code that does that successfully.
>>
>> IF DIVISOR = 0, THEN RESULT = 1E+38 ELSE RESULT = DIVIDEND/DIVISOR
>>
>> It's the order in which you write it that matters. (;-)
>> --
>> Regards, John Woodgate, OOO - Own Opinions Only.
>> The good news is that nothing is compulsory.
>> The bad news is that everything is prohibited.
>> http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk
>
>
>Precisely, solved in Basic, circa 1968!
>Or in Fortran, even earlier!
>That's how coders solve those pesky little "special cases". <g>
>
There's a bit more to it. My pseudocode produces an extreme outlier
result, which the user really ought to pick up. It does NOT produce an
error message that stops the program. Of course it can be extended to
produce a *warning*. Stopping the program for a recoverable error is,
IMHO, really rather stupid.

-- 
Regards, John Woodgate, OOO - Own Opinions Only. 
The good news is that nothing is compulsory.
The bad news is that everything is prohibited.
http://www.jmwa.demon.co.uk Also see http://www.isce.org.uk 


Relevant Pages

  • Re: What does this have to do with electronics?
    ... I read in sci.electronics.design that Kevin Aylward ... >Ken Smith wrote: ... The good news is that nothing is compulsory. ... The bad news is that everything is prohibited. ...
    (sci.electronics.design)
  • Re: Gordon Brown will scrap ID cards for all
    ... "The cards are already compulsory for asylum-seekers and their ... I still wonder if it's true, since only the Sunday Mirror has carried ... e.g. Google News, backing it up. ...
    (uk.legal)
  • Re: What does this have to do with electronics?
    ... I read in sci.electronics.design that Ken Smith ... >unicorn trap. ... The good news is that nothing is compulsory. ... The bad news is that everything is prohibited. ...
    (sci.electronics.design)
  • Re: ELF detector
    ... >John Woodgate wrote: ... >> I read in sci.electronics.design that Ken Smith ... >> The good news is that nothing is compulsory. ... >> The bad news is that everything is prohibited. ...
    (sci.electronics.equipment)
  • Re: ELF detector
    ... >John Woodgate wrote: ... >> I read in sci.electronics.design that Ken Smith ... >> The good news is that nothing is compulsory. ... >> The bad news is that everything is prohibited. ...
    (sci.electronics.design)