From c933c2a2c5787875a34e4c542acd7956cd67fe02 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Fri, 10 May 2024 20:35:06 +0100 Subject: [PATCH] save readme and another example, add makefile --- README.md | 18 ++++++++++++++++++ makefile | 8 ++++++++ pianotuners.f | 9 +++++++++ 3 files changed, 35 insertions(+) create mode 100644 makefile create mode 100644 pianotuners.f diff --git a/README.md b/README.md index a831ddd..31646b8 100644 --- 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 new file mode 100644 index 0000000..211d012 --- /dev/null +++ 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 new file mode 100644 index 0000000..5bddb95 --- /dev/null +++ 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