Paul Underwood on Tue, 07 Dec 2021 17:13:35 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
logical operators -- documentation
|
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: logical operators -- documentation
- From: Paul Underwood <paulunderwood@mindless.com>
- Date: Tue, 7 Dec 2021 17:13:27 +0100
- Delivery-date: Tue, 07 Dec 2021 17:13:35 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.com; s=dbd5af2cbaf7; t=1638893607; bh=GGtXRHlwUQ3/DVKVR7ERobDauNdeZf6sbJ17b747R0M=; h=X-UI-Sender-Class:From:To:Subject:Date; b=3czbfCHrf7IUq/A5QTqENRJoRVAkYYYrNSB0GGZBq8F5Jwmtze68vHrntLWQzBLjN vWQeIT/JzmdMr8fo537zfTZUBQdtxFmFQ5sSKU0rZl5AFyK6eNaZTWgIXAsvCt3sAE cMMtZi1MlKgAQt+jeD7NQ4wXb6c5Z2dvl+mjkq+s=
- Sensitivity: Normal
Fellow users,
https://pari.math.u-bordeaux.fr/dochtml/html-stable/operators.html
shows left associativity of logical operators, || and &&.
But in the latest version it is right associative.
For example:
for(n=1,9,if(1<0 && 3<2 || n%2==1,print1(n" ")))
1 3 5 7 9
I do not know the extent of this erroneous information in documentation and help files,
Best
Paul