Anonymous user
Runtime evaluation/In an environment: Difference between revisions
Runtime evaluation/In an environment (view source)
Revision as of 00:12, 30 April 2009
, 15 years ago→{{header|Octave}}: changed into an imitation of python, more or less
(clarify task: mention not using a global variable, avoid the 'provided code is a function' interpretation) |
(→{{header|Octave}}: changed into an imitation of python, more or less) |
||
Line 97:
=={{header|Octave}}==
endfunction
p = "x .* 2";
a = calcit(p, [1:3]);
▲<lang octave>p = "x .* 2";
▲x = [1:3];
▲a = eval(p);
▲x = [4:6];
disp(b-a);</lang>
|