I say "possible" bug in the title, because this may just be another case of me not understanding the subtleties of this calculator. I have found that if I pass a dummy variable x to a program and use it with sqrt(x), then I get a program halt with Error: wrong argument type. However, if I express it as v X, v(x), x^.5 or (x)^.5, where v is the square root symbol, then it works fine. I have no problems using other built-in functions such as SIN(x). I do not declare the variable as LOCAL in the program, as this causes it to evaluate to zero, regardless of the value passed to the program.
EXPORT Test(x)
BEGIN
X:=sqrt(x); //this fails with wrong argument type
X:=v x; //this works fine
X:=x^.5; //this also works fine
X:=SIN(x); //this also works fine
RETURN x,X;
END;
Edited: 15 Nov 2013, 11:59 a.m. after one or more responses were posted