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


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