Project
Useful for function analysis!
Examples
Check the code!
Other context
Off topic #1
Did you know that if you shift-click the add turtle icon, you can add a turtle facing the random direction!
Useful for function analysis!
Check the code!
Did you know that if you shift-click the add turtle icon, you can add a turtle facing the random direction!
Fascinating topic! Never heard of this. (I've always heard of 3+4i but never 3+4\epsilon)
Maybe offer some examples and use cases to show the power of this topic.
They are in the help screen.
These are information on how these blocks work.
Examples are added, in the project!
This is totally not what I was expecting from the name “toleranced numbers.” In engineering a “tolerance” is the amount by which some actual value might be different from its expected value. So you might buy a resistor that’s supposed to be 100Ω, but the manufacturing process can’t be perfect, so what you really get is 100Ω±10%, i.e., anywhere between 90Ω and 110Ω, or maybe you pay more and get 100Ω±5%. Arithmetic on these is very different from arithmetic on your numbers! In particular if you subtract two numbers with tolerances, the resulting tolerance can only get worse, not better.
I have renamed it into “Dual numbers”
Oh, I wasn’t complaining, just remarking.
(exclude tolerance part from toleranced number [toleranced number {} = toleranced number] :: #0000ff) :: define+
warp {
script variables ((toleranced number manipulation result)) @>
set [toleranced number manipulation result V] to (item (real part v) of (toleranced number))
if <(toleranced number manipulation result) = []> {
extension [err_error(msg) V] [remove tolerance part from toleranced number _ : the toleranced number is not given!] @<:>
} @>
report (toleranced number manipulation result)
}
I saw that is the Snap! Manuel somewhere, maybe in the object oriented programming section.
I can’t remember the exact details :)