Bug in seq comand? (no bug)

Bugs

Modérateur : xcasadmin

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

Bug in seq comand? (no bug)

Message par XcasEngGuy » lun. juin 05, 2023 4:59 pm

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é 754 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
Dernière modification par XcasEngGuy le sam. juin 10, 2023 11:42 pm, modifié 1 fois.

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

Re: Bug in seq comand?

Message par parisse » mar. juin 06, 2023 6:08 pm

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).

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

Re: Bug in seq comand?

Message par XcasEngGuy » mar. juin 06, 2023 8:31 pm

That's what I needed.

Thanks again,
Matt

Répondre