The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
order of logical operations in CAS
10-14-2022, 03:40 AM (This post was last modified: 10-14-2022 03:41 AM by Wes Loewer.)
Post: #1
order of logical operations in CAS
I noticed that in Home A OR B AND C is treated as A OR (B AND C) as expected with AND having a higher precedence than OR.

However, in CAS a OR b AND c is treated as (a OR b) AND c, evaluating left to right with AND and OR having the same precedence.

For example:
Home:
true OR false AND false --> 1

CAS (and XCAS)
true OR false AND false --> false

Is this a bug, or is this the intended behavior?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
order of logical operations in CAS - Wes Loewer - 10-14-2022 03:40 AM



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