commit c933c2a2c5787875a34e4c542acd7956cd67fe02
parent efec064246aaf6ce2a7b170a6741e46b5982834c
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Fri, 10 May 2024 20:35:06 +0100
save readme and another example, add makefile
Diffstat:
3 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md
@@ -1,3 +1,20 @@
+# A minimalist calculator for fermi estimation
+
+This project contains a minimalist calculator for Fermi estimation. Right now, it just multiplies lognormals.
+
+## Motivation
+
+Sometimes, [Squiggle](https://github.com/quantified-uncertainty/squiggle), [simple squiggle](https://git.nunosempere.com/quantified.uncertainty/simple-squiggle) or [squiggle.c](https://git.nunosempere.com/personal/squiggle.c) are still too complicated and un-unix-like.
+
+## An example
+
+
+
+Perhaps this example might be clearer with comment
+
+
+##
+
To do:
- [ ] Write README
@@ -8,6 +25,7 @@ To do:
- [ ] Program into a small device, like a calculator?
- [ ] Allow comments?
- Use a sed filter?
+- [ ] Think of some way of calling bc
go run main.go < model.f
diff --git a/makefile b/makefile
@@ -0,0 +1,8 @@
+run:
+ go run f.go
+
+build:
+ go build f.go
+
+install: f
+ sudo mv f /usr/bin/f
diff --git a/pianotuners.f b/pianotuners.f
@@ -0,0 +1,9 @@
+Please enter exactly two floats.
+4000000 12000000
+=> 4000000.0 12000000.0
+0.005 0.01
+=> 25587.7 93795.1
+1/365 1/365
+Invalid input. Please ensure you enter two floats.
+1 1
+=> 25587.7 93795.1