

Java:
import java.util.*;
public class Vektorrechnung {
public static double einlesen(int N) {
Scanner lesen = new Scanner(System.in);
double[] x = new double[N];
for( int i=1;i<=N;i++) {
System.out.println("Die nächste Zahl ist="+i+1);
x[i] = lesen.nextDouble();
System.out.println("Geben Sie eine Zahl ein");
}
return N;
}
}
public static void ausgabe(double[]x) {
int N = x.length;
for(int i=1;i<N;i++) {
System.out.println( "xi" +(i+1)+ "fx="+x[i]);
}
}
public static void Zweinorm(double[]x) {
Hey, soweit bin ich jetzt gekommen . Bei c komme ich nicht so wirklich weiter, mit
Math.sqrt(ausgabe) komme ich auch nicht weiter und habe echt keine Ahnung was ich hierbei machen muss. Kann jmd. mir vil. paar Tipps geben?
Danke im Vorraus.
MfG