Page 1 sur 1

is x a predefined function?

Publié : sam. juin 10, 2023 11:50 pm
par XcasEngGuy
I noticed x(t) is equal to t:
Capture_20230610-194348.jpg
Capture_20230610-194348.jpg (11.61 Kio) Consulté 1160 fois
Is this intended? I am including a test of all the single letter functions. I understand i and e, because they are predefined. t(t) makes no sense, so xcas assumes multiplication. I was wondering about x(t).
test.zip
(1.15 Kio) Téléchargé 40 fois

Re: is x a predefined function?

Publié : sam. juin 17, 2023 3:37 pm
par parisse
x and t behaves like that, i.e., x(val) or t(val) will return val. The reason is that many users are using expressions like functions, e.g. f:=x^2+5x then f(2)
and they would be disturbed by the warning message.
Expressions are in terms of x or t most of the time, especially on calculators ports.