Re: BMD source program errors





robin wrote:
No it shouldn't. Path 128 is taken when B is zero (see previous line),
and there's no point in taking the square root of zero.

Robin is correct as my comment line stood!
My fault was writing the comment on the wrong line.
It was the very similar line above that was wrong.
The original 1966 code WAS wrong asnd runs correctly after the
indicated change.

The correct situation of my posting, with NO CODE CHANGED is as
follows

"Terence" <tbwright@xxxxxxxxx> wrote in message
news:e4e773e9-5232-4961-a548-1d83cad877ba@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I was particularly worried by just how many errors I found in some of
the versions of the subroutines, even afer I found errors in the
occasional core module which would REALLY stop them working.
Examples
a) a source line that should not be there, that destroys the variable
count of lines of data to read, which was just read as input.
Or code incorrectly copied (probably from another module) like the
following, which computes D2 from D1 and FN in the transgeneration
module.
C
6 FN=NCASE
A=D1/(FN+1.0)
B=A+1.0/(FN+1.0)
IF (A) 198,123,124
123 IF (B) 198,107,127
127 D2=ASN(SQRT(A)) <---Should be: 127 D2=ASN(SQRT(B))
GO TO 100
124 IF (B) 198,128,129
128 D2=ASN(SQRT(A)) <---previous coment here now above!!!
GO TO 100
129 D2=ASN(SQRT(A)) + ASN(SQRT(B))
GO TO 100
..
198 (ERROR reporting)
..
107 D2=1.0

The box I am writing in is only 25% of the screen. I hate it!
That's why I see my typos only after I get my own contribution sent
back to me in e-mail and see it twice as high and twice as wide
.



Relevant Pages

  • Re: Rare event on TO
    ... God." ... Ray's difficulties with english is obvious (the line you're writing ... start writing and once or twice after I am done for the day. ... [end Ray quote] ...
    (talk.origins)
  • Re: avoiding file corruption
    ... Trying to open a file for writing that is already open for writing ... twice, that's up to the programmer to ensure the consistency of the ... But if this is usually a serious bug, shouldn't an exception be raised? ... You are requesting a general solution for a very particular problem. ...
    (comp.lang.python)
  • Re: VPC Performance on a Powerbook G4 1.5Ghz????
    ... Robin ... >> I ask because although the new machine is twice as fast and therefore VPC ... >> OUGHT to be twice as fast it has a very much smaller secondary cache, ... >> Regards. ...
    (microsoft.public.mac.virtualpc)
  • Re: Horrid Serial Dacs
    ... >Debugging is twice as hard as writing the code in the first place. ...
    (sci.electronics.design)
  • Re: "Craps for Dummys"
    ... Yeah, because it's condescending, error-packed and ignorant all at the ... writing mark him as ... Only "dorks" think a number will show twice ... you can take them down after one hit. ...
    (rec.gambling.craps)