Qurak

Localize variables with Block

Example 2 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
Block[{f = Sin[x + I y]}, ParametricPlot[Evaluate[{Re[f], Im[f]}], {x, -Pi, Pi}, {y, -2, 2}, Mesh -> Automatic]]
Output
-Graphics-
Step 2
? f
Output
Missing[UnknownSymbol, f]

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client