Runtime evaluation/In an environment: Difference between revisions
Content added Content deleted
m (modify output format) |
|||
Line 683: | Line 683: | ||
print(a + b) --> outputs 5</lang> |
print(a + b) --> outputs 5</lang> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
<lang Mathematica>Input source code is "10 x" , X is locally bound to 3 & 2 and the resulting expressions evaluated. |
<lang Mathematica>Input source code is "10 x" , X is locally bound to 3 & 2 and the resulting expressions evaluated. |
||
(10 x /. x -> 3 ) - (10 x /. x -> 2 ) |
(10 x /. x -> 3 ) - (10 x /. x -> 2 ) |