IFTE vs ifte...HOME vs CAS
01-14-2019, 08:41 PM
Post: #1
 toshk Member Posts: 195 Joined: Feb 2015
IFTE vs ifte...HOME vs CAS
IFTE(({1,2,3,9})<8,{1,7,9,9},{88,89,90,55});//ok at HOME
ifte(({1,2,3,9})<8,{1,7,9,9},{88,89,90,55});//NOT ok CAS, hopefully needs a nudge

{1,2,3,9}<{0,7,9,9};//ok at HOME
if ok at HOME then WHY NOT
IFTE(({1,2,3,9})<{0,7,9,9},{1,7,9,9},{88,89,90,55});//hopefully needs a nudge

{1,2,3,9}<{1,7,9,9};/NOT ok CAS, hopefully needs a nudge
01-15-2019, 06:52 AM
Post: #2
 parisse Senior Member Posts: 1,322 Joined: Dec 2013
RE: IFTE vs ifte...HOME vs CAS
< does not compare list in the CAS.
01-15-2019, 07:42 AM
Post: #3
 Didier Lachieze Senior Member Posts: 1,641 Joined: Dec 2013
RE: IFTE vs ifte...HOME vs CAS
(01-14-2019 08:41 PM)toshk Wrote:  {1,2,3,9}<{0,7,9,9};//ok at HOME
if ok at HOME then WHY NOT
IFTE(({1,2,3,9})<{0,7,9,9},{1,7,9,9},{88,89,90,55});//hopefully needs a nudge

For this one you need to remove the extra parentheses to make it work in Home:

IFTE({1,2,3,9}<{0,7,9,9},{1,7,9,9},{88,89,90,55});
returns:
{88,7,9,55}
01-15-2019, 02:05 PM (This post was last modified: 01-15-2019 02:06 PM by informach.)
Post: #4
 informach Member Posts: 109 Joined: Jul 2015
RE: IFTE vs ifte...HOME vs CAS
Hi!, Didier Lachieze :
The rules of parenthesis, is ...
The sum of "(" it must be the same what ")".
The examples of toshk, are OK, but needed see the post what send parisse.
01-15-2019, 03:15 PM (This post was last modified: 01-15-2019 03:19 PM by Didier Lachieze.)
Post: #5
 Didier Lachieze Senior Member Posts: 1,641 Joined: Dec 2013
RE: IFTE vs ifte...HOME vs CAS
(01-15-2019 02:05 PM)informach Wrote:  The examples of toshk, are OK, but needed see the post what send parisse.

Did you really read what I wrote and did you try what I suggested to toshk?
01-16-2019, 05:44 AM
Post: #6
 Tyann Senior Member Posts: 391 Joined: Oct 2014
RE: IFTE vs ifte...HOME vs CAS
Bonjour

J'avais fait quelques essais il y a longtemps sur une version plus ancienne de ROM,
concernant IFTE avec des listes et cela ne fonctionnais pas.
Content de voir que cela a été corrigé et fonctionne bien maintenant.
Merci pour ce post.

Hello

I did some tests a long time ago on an older version of ROM,
about IFTE with lists and it did not work.
Glad to see that this has been fixed and works well now.
Thank you for this post.

Sorry for my english
 « Next Oldest | Next Newest »

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