File NUMER.BA (BASIC source file)
Directory of image this file is from
This file as a plain text file
10 INPUT X0,L,M
20 N=0
30 X1= SQR(1+SIN(X0))/4
40 N1=(LOG(1-L)*10**(-M)/ABS(X0-X1))/LOG(L)
50 N1=INT(N1+1)
60 N=N+1
70 X0=X1
80 X1=SQR(1+SIN(X0))/4
90 IF N=N1 THEN 130
100 F =L*ABS(X1-X0)/(1-L)
110 IF F<10**(-M) THEN 130
120 GOTO 60
130 PRINT N1,N,X1,F
140 END
Feel free to contact me, David Gesswein djg@pdp8online.com
with any questions, comments on the web site, or if you have related equipment,
documentation, software etc. you are willing to part with. I am
interested in anything PDP-8
related, computers, peripherals used with them, DEC or third party, or
documentation.
PDP-8 Home Page
 PDP-8 Site Map
 PDP-8 Site Search