Runtime evaluation/In an environment: Difference between revisions
Runtime evaluation/In an environment (view source)
Revision as of 18:32, 21 April 2024
, 1 month agoAdded FreeBASIC
Drkameleon (talk | contribs) (added Arturo) |
(Added FreeBASIC) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 224:
=={{header|Elena}}==
ELENA
Using VM console client:
Line 235:
var arg := program_arguments[2];
var program := lscript.
console.printLine(
text,",",arg," = ",program.eval(arg.toReal()));
Line 328:
LOOP
; ok</syntaxhighlight>
=={{header|FreeBASIC}}==
<syntaxhighlight lang="vbnet">#include "solver.bi"
Dim As String expression = "(x ^ 2 )-7"
setVar("x",1.2)
Print "one = ";Solver(expression)
setVar("x",3.4)
Print "two = ";Solver(expression)
Sleep</syntaxhighlight>
{{out}}
<pre>one = -5.560000000000001
two = 4.559999999999999</pre>
=={{header|Genyris}}==
Line 1,501 ⟶ 1,516:
=={{header|Wren}}==
Wren has
However, it only appears to work with module level variables.
<syntaxhighlight lang="
var x
Line 1,548 ⟶ 1,563:
{{omit from|GUISS|Does not have variables}}
{{omit from|Lily}}
{{omit from|Insitux}}
|