about summary refs log tree commit diff
path: root/usth/ICT2.2/labwork/1/SumOfSines.java
diff options
context:
space:
mode:
Diffstat (limited to 'usth/ICT2.2/labwork/1/SumOfSines.java')
-rw-r--r--usth/ICT2.2/labwork/1/SumOfSines.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/usth/ICT2.2/labwork/1/SumOfSines.java b/usth/ICT2.2/labwork/1/SumOfSines.java
new file mode 100644
index 0000000..2cf6e03
--- /dev/null
+++ b/usth/ICT2.2/labwork/1/SumOfSines.java
@@ -0,0 +1,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));
+  }
+}