私は問題を解決しましたが、 の 1 つの値に対してそれを行う方法しかわかりませんでしたx
。これがプログラムです。
public class PointsOnACircleV1 {
public static void main(String[ ] args)
{
double r = 1;
double x = 0.1;
double equation1= Math.pow(r,2);
double equation2= Math.pow(x,2);
double y = Math.sqrt(equation1-equation2);
System.out.println(y);
}
}
正解しました.99(……)
xの複数の値を表示するには、私のものが必要です。出力は次のようになります。できれば助けてください。