Post Reply 
IFTE odd behaviour
10-12-2019, 01:40 PM
Post: #16
RE: IFTE odd behaviour
(10-11-2019 05:36 PM)rprosperi Wrote:  
(10-11-2019 11:09 AM)Tim Wessman Wrote:  Second may be a bug (not sure, would have to check the code), but the third is perfectly expected and as designed. It is doing list processing on your input.

Try IFTE({1,0,1,0,0),2,3) and what do you get?

Assuming this should be IFTE({1,0,1,0,0},2,3), I'd guess {2,3,2,3,3} ?

So I dug out my Prime to check (the suspense was killing me) and have mixed results:

In HOME, my guess was right, {2,3,2,3,3} so I understand that at least;

But in CAS, Prime replies "when({1,0,1,0,0},2,3)", though it also adds the simplify button, daring me to pursue it further. Figuring it can't hurt to try, it then replies "simplify(when({1,0,1,0,0},2,3)) => when({1,0,1,0,0},2,3)"

So, 2 conclusions - In CAS, I guess that is as simple as it gets, and I still don't understand the Prime's split personality.

Can anyone explain:

1. The CAS behavior, and meaning of that result
2. Why they are different? I'd assume IFTE() works the same in both modes - there is no mention of either mode in the online help and this command is not in the manual at all.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
IFTE odd behaviour - BruceH - 10-11-2019, 10:55 AM
RE: IFTE odd behaviour - Tim Wessman - 10-11-2019, 11:09 AM
RE: IFTE odd behaviour - rprosperi - 10-11-2019, 05:36 PM
RE: IFTE odd behaviour - rprosperi - 10-12-2019 01:40 PM
RE: IFTE odd behaviour - Carsen - 10-12-2019, 06:41 PM
RE: IFTE odd behaviour - rprosperi - 10-12-2019, 10:49 PM
RE: IFTE odd behaviour - BruceH - 10-11-2019, 06:18 PM
RE: IFTE odd behaviour - Tim Wessman - 10-11-2019, 12:32 PM
RE: IFTE odd behaviour - ijabbott - 10-11-2019, 04:36 PM
RE: IFTE odd behaviour - Claudio L. - 10-11-2019, 08:36 PM
RE: IFTE odd behaviour - David Hayden - 10-11-2019, 08:52 PM
RE: IFTE odd behaviour - Albert Chan - 10-11-2019, 09:09 PM
RE: IFTE odd behaviour - Wes Loewer - 10-12-2019, 06:38 AM
RE: IFTE odd behaviour - John Keith - 10-12-2019, 11:41 AM
RE: IFTE odd behaviour - StephenG1CMZ - 10-12-2019, 08:26 AM
RE: IFTE odd behaviour - Wes Loewer - 10-12-2019, 11:00 AM
RE: IFTE odd behaviour - Wes Loewer - 10-12-2019, 11:46 AM
RE: IFTE odd behaviour - John Keith - 10-12-2019, 11:50 AM
RE: IFTE odd behaviour - rprosperi - 10-16-2019, 04:25 PM
RE: IFTE odd behaviour - rprosperi - 10-17-2019, 03:29 PM



User(s) browsing this thread: 1 Guest(s)