Jump to content

Babylonian spiral: Difference between revisions

m
Added description to the output section.
m (Added to output section.)
m (Added description to the output section.)
Line 97:
public static void main(String[] aArgs) throws IOException {
List<Point> points = babylonianSpiral(40);
System.out.println("The first 40 points of the Babylonian spiral are:");
for ( int i = 0, column = 0; i < points.size(); i++ ) {
System.out.print(String.format("%9s%s",
Line 173 ⟶ 174:
[[Media:BabylonianSpiralJava.svg]]
<pre>
The first 40 points of the Babylonian spiral are:
(0, 0) (0, 1) (1, 2) (3, 2) (5, 1) (7, -1) (7, -4) (6, -7) (4, -10) (0, -10)
(-4, -9) (-7, -6) (-9, -2) (-9, 3) (-8, 8) (-6, 13) (-2, 17) (3, 20) (9, 20) (15, 19)
907

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.