commit 69b3681697f882613fc77fbdd377189bb2d1cdc4
parent bc40428f8afc5034826845aecfe0613f51f7c882
Author: NunoSempere <nuno.semperelh@protonmail.com>
Date: Sun, 12 May 2024 18:10:25 +0100
fix distributional division
Diffstat:
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git 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
@@ -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")
}