vault backup: 2023-07-21 21:09:23
This commit is contained in:
21
Mathe/Ilias/Zusatz_Material/Folge.java
Normal file
21
Mathe/Ilias/Zusatz_Material/Folge.java
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user