According to docs, in Julia I can do the following:
julia> pi
π = 3.1415926535897...
julia> pi = 3
Warning: imported binding for pi overwritten in module Main
3
How can I resore pi
back to it's proper value?
You can access the original under Base.pi
:
julia> pi
π = 3.1415926535897...
julia> pi = 3
Warning: imported binding for pi overwritten in module Main
3
julia> Base.pi
π = 3.1415926535897...
julia> pi = Base.pi;
julia> pi
π = 3.1415926535897...
julia> cos(pi)
-1.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With