summaryrefslogtreecommitdiff
path: root/1415/files/practicum/Kogelbaan.icl
diff options
context:
space:
mode:
authorCamil Staps2016-02-02 19:24:50 +0100
committerCamil Staps2016-02-02 19:24:50 +0100
commita7d7542dc646a5fd124ef71e71ce260889f1701b (patch)
tree04ed89503bbb3cc9933273a1326a53ca724c3492 /1415/files/practicum/Kogelbaan.icl
parentweek6 camil: working positioning of lines by putting empties at left and righ... (diff)
Moved to 1415 directoryHEADmaster
Diffstat (limited to '1415/files/practicum/Kogelbaan.icl')
-rw-r--r--1415/files/practicum/Kogelbaan.icl37
1 files changed, 37 insertions, 0 deletions
diff --git a/1415/files/practicum/Kogelbaan.icl b/1415/files/practicum/Kogelbaan.icl
new file mode 100644
index 0000000..7490b38
--- /dev/null
+++ b/1415/files/practicum/Kogelbaan.icl
@@ -0,0 +1,37 @@
+implementation module Kogelbaan
+
+import StdEnv
+
+:: T :== Real // T staat voor tijd (s).
+:: V :== Real // R staat voor snelheid (m/s).
+:: A :== Real // A staat voor hoek (radialen).
+:: G :== Real // G staat voor valversnelling (m/s^2).
+:: D :== Real // M staat voor afstand (m).
+
+// De valversnelling g is een 'echte' constante:
+g :: G
+g = 9.81
+
+// De gevraagde functies:
+v_x :: // geef type van v_x
+v_x = // geef functievoorschrift van v_x
+
+v_y :: // geef type van v_y
+v_y = // geef functievoorschrift van v_y
+
+x_at :: // geef type van x_at
+x_at = // geef functievoorschrift van x_at
+
+y_at :: // geef type van y_at
+y_at = // geef functievoorschrift van y_at
+
+h :: // geef type van h
+h = // geef functievoorschrift van h
+
+// Het bepalen van de beste hoek uit {0.01*pi, 0.02*pi .. 0.5*pi}:
+Start = beste_hoek 5.0
+
+pi = 3.1415926
+
+beste_hoek :: V -> ...
+beste_hoek v_0 =