How can i change variables symbols throughout the entire code without having to change it one by one. So for example A=20 and then 2*A=40; should change to B=20 and 2*B=40.

  • 1
    $\begingroup$ tried the front end find/replace menu? $\endgroup$ – george2079 Dec 14 '17 at 0:57
  • 2
    $\begingroup$ Make sure to use the "whole word" option in the front end find/replace menu. $\endgroup$ – jjc385 Dec 14 '17 at 1:21
  • $\begingroup$ Use ReplaceAll: expr /. A -> B. $\endgroup$ – march Dec 14 '17 at 5:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.