0
votes
1answer
48 views

Don't pollute outside context when solving equation from the outside

This code works fine only if a is not defined in the outside context: ...
8
votes
1answer
109 views

Get the name of a symbol passed to a function

I'm trying to get the name of a symbol passed to a function with this: f[x_] := {SymbolName[x], x} SetAttributes[f, HoldFirst] x = 5; f[x] But ...