Define a function or symbol
Define a function f:
Find the definition of a function or symbol
Find the definition of f:
- You can also use Definition to get a symbol or a function’s definition.
Clear the definition of a function or symbol
Clear the definition of f:
The function f is no longer defined:
If you redefine a function, using Clear beforehand will ensure that no unwanted definitions linger and cause potential problems.
Clear clears definitions, but not attributes, messages or defaults associated with symbols. Use ClearAll to clear all information associated with a symbol.
The symbol x persists after Clear:
Remove the symbol completely: