about summary refs log tree commit diff stats
path: root/html/f2c.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-03-08 02:01:28 -0800
committerKartik K. Agaram <vc@akkartik.com>2016-03-08 02:01:28 -0800
commite33cf8b3660016acf4be5b6b7eac6324947c0c3f (patch)
tree3b33d8003c5cdcee4e3696c0435b68dd3661d502 /html/f2c.mu
parent1ead356219bb2eb59487d1012f837bd07ec336f5 (diff)
downloadmu-e33cf8b3660016acf4be5b6b7eac6324947c0c3f.tar.gz
2736
Diffstat (limited to 'html/f2c.mu')
-rw-r--r--html/f2c.mu8
1 files changed, 8 insertions, 0 deletions
diff --git a/html/f2c.mu b/html/f2c.mu
new file mode 100644
index 00000000..e3aa8f6c
--- /dev/null
+++ b/html/f2c.mu
@@ -0,0 +1,8 @@
+# c = (f-32) * 5/9
+recipe fahrenheit-to-celsius f:number -> c:number [
+  local-scope
+  load-ingredients
+  tmp:number <- subtract f, 32
+  tmp <- multiply tmp, 5
+  c <- divide tmp, 9
+]