fix distributional division
This commit is contained in:
parent
bc40428f8a
commit
69b3681697
|
@ -94,6 +94,7 @@ Conceptually clearer to have all the multiplications first and then all the divi
|
||||||
- [x] Allow comments?
|
- [x] Allow comments?
|
||||||
- [x] Use a sed filter?
|
- [x] Use a sed filter?
|
||||||
- [x] Add show more info version
|
- [x] Add show more info version
|
||||||
|
- [x] Scalar multiplication and division
|
||||||
- [ ] Program into a small device, like a calculator?
|
- [ ] Program into a small device, like a calculator?
|
||||||
- [ ] Think of some way of calling bc
|
- [ ] Think of some way of calling bc
|
||||||
- [ ] Think how to integrate with squiggle.c to draw samples
|
- [ ] Think how to integrate with squiggle.c to draw samples
|
||||||
|
|
3
f.go
3
f.go
|
@ -128,6 +128,9 @@ EventForLoop:
|
||||||
fmt.Println(error_msg_cont)
|
fmt.Println(error_msg_cont)
|
||||||
continue EventForLoop
|
continue EventForLoop
|
||||||
}
|
}
|
||||||
|
tmp := new_low
|
||||||
|
new_low = 1.0 / new_high
|
||||||
|
new_high = 1.0 / tmp
|
||||||
default:
|
default:
|
||||||
fmt.Println("Trying to divide by something, but this something is neither a scalar nor a distribution")
|
fmt.Println("Trying to divide by something, but this something is neither a scalar nor a distribution")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user