Programmig Newbie....where to start?


D

David Brown

David Brown said:
[...] The
only limit on the output was due to memory on the computer, and the
patience of the operator - the algorithm was not particularly efficient,
but the program was elegant.

I think I know what you mean -- an algorithm the just puts out decimal
digits one by one (usually getting slower and slower!) for as long as
you care to wait. If so, my last reply missed the point. Sorry.

Yes, such a think is probably possible, (and they are very neat
algorithms) but I went a different way round.

Yes, I think you understand what I meant. And yes, the digits came out
slower and slower - this was a programming exercise for a maths and
computation course, and speed was not particularly important. (I
actually speed it up by using a faster converging sequence than
4*atan(1/4), but the principle was the same.)

So not much good if you really want thousands of digits of your number,
but fun anyway.
 
Ad

Advertisements


Similar threads

M
Replies
1
Views
3K
josephwalkman89
J
S
Replies
0
Views
5K
studentservice
S
M
Replies
2
Views
979
Cowboy \(Gregory A. Beamer\)
C
D
Replies
1
Views
2K
davidinvestworld
D
C
Replies
1
Views
495
Cameron Laird
C
R
Replies
0
Views
757
Robert Maas, http://tinyurl.com/uh3t
R
S
Replies
109
Views
4K
David Thompson
D
Top