public class Test{
public static void main(String args[]){
double degrees1 = -90.0;
double radians1 = Math.toRadians(degrees1);
double degrees2 = -60.0;
double radians2 = Math.toRadians(degrees2);
double degrees3 = -45.0;
double radians3 = Math.toRadians(degrees3);
double degrees4 = -30.0;
double radians4 = Math.toRadians(degrees4);
double degrees5 = 0.0;
double radians5 = Math.toRadians(degrees5);
double degrees6 = 30.0;
double radians6 = Math.toRadians(degrees6);
double degrees7 = 45.0;
double radians7 = Math.toRadians(degrees7);
double degrees8 = 60.0;
double radians8 = Math.toRadians(degrees8);
double degrees9 = 90.0;
double radians9 = Math.toRadians(degrees9);
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians1), Math.toDegrees(Math.asin(Math.sin(radians1))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians2), Math.toDegrees(Math.asin(Math.sin(radians2))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians3), Math.toDegrees(Math.asin(Math.sin(radians3))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians4), Math.toDegrees(Math.asin(Math.sin(radians4))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians5), Math.toDegrees(Math.asin(Math.sin(radians5))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians6), Math.toDegrees(Math.asin(Math.sin(radians6))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians7), Math.toDegrees(Math.asin(Math.sin(radians7))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians8), Math.toDegrees(Math.asin(Math.sin(radians8))));
System.out.format("Арксинус %.4f равен %.2f градусам %n", Math.sin(radians9), Math.toDegrees(Math.asin(Math.sin(radians9))));
}
}
нажмите кнопку ниже, чтобы скопировать код. - от - java tutorials - командаCopy Code