save readme and another example, add makefile
This commit is contained in:
parent
efec064246
commit
c933c2a2c5
18
README.md
18
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:
|
To do:
|
||||||
|
|
||||||
- [ ] Write README
|
- [ ] Write README
|
||||||
|
@ -8,6 +25,7 @@ To do:
|
||||||
- [ ] Program into a small device, like a calculator?
|
- [ ] Program into a small device, like a calculator?
|
||||||
- [ ] Allow comments?
|
- [ ] Allow comments?
|
||||||
- Use a sed filter?
|
- Use a sed filter?
|
||||||
|
- [ ] Think of some way of calling bc
|
||||||
|
|
||||||
|
|
||||||
go run main.go < model.f
|
go run main.go < model.f
|
||||||
|
|
8
makefile
Normal file
8
makefile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
run:
|
||||||
|
go run f.go
|
||||||
|
|
||||||
|
build:
|
||||||
|
go build f.go
|
||||||
|
|
||||||
|
install: f
|
||||||
|
sudo mv f /usr/bin/f
|
9
pianotuners.f
Normal file
9
pianotuners.f
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user