about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/1/SumOfSines.java
blob: 2cf6e03314b49014a78c889d3783d5dd5cff4893 (plain) (blame)
1
2
3
4
5
6
7
8
class SumOfSines
{
  public static void main(String... args)
  {
    double t = Double.parseDouble(args[0]);
    System.out.printf("sin2t + sin3t = %g", Math.sin(t * 2) + Math.sin (t * 3));
  }
}