vault backup: 2023-07-21 21:09:23

This commit is contained in:
2023-07-21 21:09:23 +02:00
parent 813a004804
commit 4614753b0d
26 changed files with 109 additions and 11 deletions

View File

@@ -0,0 +1,21 @@
// Folge.java
import java.io.*;
public class Folge
{
public static void main(String[] args) throws IOException
{
double x=2.0,a=2.0;
for (int k=0; k<=9; k++)
{
System.out.println("k = "+ k +" a_k = "+ a);
a=0.5*(a+x/a); // Heron-Iteration
// a=Math.sqrt(k*k+3.0*k)-k;
// System.out.println(Double.MAX_VALUE);
}
}
}