0
$\begingroup$

I'm sorry if my question is akward, it's my first question here. :) I wanna use unit vector of spherical coordinates not using any functions. (r hat) Cross (theta hat) for example. Is there a way that I can define vector constants or etc in the system?

$\endgroup$
1
  • 2
    $\begingroup$ How about Protect? $\endgroup$
    – John Doty
    Commented Feb 13, 2018 at 16:02

1 Answer 1

2
$\begingroup$

There is no command ClearAll that magically clears all defined symbols. ClearAll is a function that only affects the symbols you give it as arguments. The All suffix doesn't mean all symbols, it means that both values and attributes are cleared, unlike Clear which only clears values.

If you don't want some symbols cleared by it, make sure ClearAll doesn't see them. If you doing something like

 ClearAll["Global`*"] 

then put the symbols you don't want cleared in a different context than Global`.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.