Преглед на файлове

exercise 2.4: sin(theta) where theta is given in degrees

George C. Privon преди 2 години
родител
ревизия
b3924913bd
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      02-basicfunctions/exercises/ex2.4.hs

+ 7 - 0
02-basicfunctions/exercises/ex2.4.hs

@@ -0,0 +1,7 @@
+-- Exercise 2.4
+-- George C. Privon
+-- 2023-09-05
+
+-- Function that computes the sin(theta) where theta is in degrees
+sinDeg :: Double -> Double
+sinDeg x = sin $ x * pi / 180