By default, E is used to represent the Euler's number in Mathematica. I need the variable E to behave just like other undefined variables in my code. When I run the commands
Unprotect[E]
Clear[E]
the variable E remains black, which means it still holds a value. Next, If I run
1.0E
Mathematica gives
2.71828
How can I completely clear this predefined value?
N
function. You can define (afterUnprotecting
E
), e.g.N[E] = 0
, and that would change the result in your example. As a result,E
will acquire so-calledNValues
:NValues[E]
will not be empty list. But I'd think twice before doing such hard redefinitions for such a fundamental constant asE
, it can have all kinds of unobvious consequences for your Mathematica session / calculations. $\endgroup$E
. Check ref/format/CSV in the documentation (Help > Wolfram Documentation, then enter "CSV"). With"Numeric"->False
(orAutomatic
, I think) you get strings rather than numbers.StringReplace
can then change occurrences of the character E into something else. $\endgroup$