Skip to main content
made advice mor explicit in case something gets closed as a duplicate of this
Source Link
Szabolcs
  • 238.9k
  • 32
  • 653
  • 1.3k

Plot has Attributes HoldAll, so one possibility to get what you expect is to do just

SetOptions[Plot, Evaluated -> True]; 

at the beginning.

Another possibility (better documented) would be to use Evaluate inside Plot.:

Plot[Evaluate[...], {x, 0, 2}] 

Plot has Attributes HoldAll, so one possibility to get what you expect is to do just

SetOptions[Plot, Evaluated -> True]; 

at the beginning.

Another possibility (better documented) would be to use Evaluate inside Plot.

Plot has Attributes HoldAll, so one possibility to get what you expect is to do just

SetOptions[Plot, Evaluated -> True]; 

at the beginning.

Another possibility (better documented) would be to use Evaluate inside Plot:

Plot[Evaluate[...], {x, 0, 2}] 
Source Link
Rolf Mertig
  • 17.7k
  • 1
  • 48
  • 78

Plot has Attributes HoldAll, so one possibility to get what you expect is to do just

SetOptions[Plot, Evaluated -> True]; 

at the beginning.

Another possibility (better documented) would be to use Evaluate inside Plot.