Page 1 sur 1

Bug in seq comand? (no bug)

Publié : lun. juin 05, 2023 4:59 pm
par XcasEngGuy
I occasionally use seq to extract terms from equations so I can manipulate them individually. I noticed that it substitutes a value into my equation if a variable in my equation matches a variable in the seq command.
Capture_20230605-125309.jpg
Capture_20230605-125309.jpg (63.49 Kio) Consulté 1155 fois
Is this a bug? I have not been able to check other commands for similar behavior. I am worried as I use the programming in xcas extensively and this occurs with local variables also.

Matt

Re: Bug in seq comand?

Publié : mar. juin 06, 2023 6:08 pm
par parisse
You can run op(eq) to extract all the arguments of the root-operator of eq in a sequence (or [op(eq)] in a list).

Re: Bug in seq comand?

Publié : mar. juin 06, 2023 8:31 pm
par XcasEngGuy
That's what I needed.

Thanks again,
Matt