is x a predefined function?

Messages in english

Modérateur : xcasadmin

XcasEngGuy
Messages : 146
Inscription : mer. janv. 13, 2010 3:20 pm

is x a predefined function?

Message par XcasEngGuy » sam. juin 10, 2023 11:50 pm

I noticed x(t) is equal to t:
Capture_20230610-194348.jpg
Capture_20230610-194348.jpg (11.61 Kio) Consulté 892 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é 37 fois
Pièces jointes
test.zip
(1.15 Kio) Téléchargé 26 fois

parisse
Messages : 5739
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: is x a predefined function?

Message par parisse » sam. juin 17, 2023 3:37 pm

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.

Répondre