I'm trying to follow the examples from the MIT Numerical Methods course's first lecture but experiencing unexpected behavior from BigFloat
on my machine versus how it's used in the examples.
For instance:
setprecision(BigFloat, 200)
x = BigFloat(1.0)
a = BigFloat(2.0)
y = (x + a) / 2
returns a value of 2.0
which is unexpected. Without using BigFloat
, I get the expected 1.5
.
I'm running macOS and Julia 1.9.0