diff --git a/README.md b/README.md index 25879b5..290444d 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,7 @@ Conceptually clearer to have all the multiplications first and then all the divi - [x] Allow comments? - [x] Use a sed filter? - [x] Add show more info version +- [x] Scalar multiplication and division - [ ] Program into a small device, like a calculator? - [ ] Think of some way of calling bc - [ ] Think how to integrate with squiggle.c to draw samples diff --git a/f.go b/f.go index 1e3aa64..a1c5851 100644 --- a/f.go +++ b/f.go @@ -128,6 +128,9 @@ EventForLoop: fmt.Println(error_msg_cont) continue EventForLoop } + tmp := new_low + new_low = 1.0 / new_high + new_high = 1.0 / tmp default: fmt.Println("Trying to divide by something, but this something is neither a scalar nor a distribution") }