options(echo=2)
#tests of arith, logic and bit operations
#arith with integer arguments
1+3;c(-3,1789)-20;c(-7,09)*c(100,-10,1); c(5,3,1,340)/3; c(5,3,1,340)%/3
c(12,35,159,NA)^2; 7**c(0,1,-1)
c(86,-33,123456)%%5
#arith with real or mixed arguments
15+.0078; c(23.4,1,-50)-17; 1.234e12*.02; c(15,-2.,1.e3)/7.2; c(15,-2.,1.e3)%/7.2
17.53%%c(5.,0.,1.5)
c(1.2,-3,5.67)^2; c(1.2,-3,5.67)^2.001
# logical with integer arguments
5<c(4,6,-5)
c(7,12345)>500
17<=c(17,-1,100,NA)
-12>=c(500,0,-5,-12,-30)
c(2,3,-3,4,NA)==c(2,-3,-3,1,NA)
# logical with real or mixed arguments
5<c(4.9,6.123,-5)
c(7.3,12345)>7.3
1.17<=c(1.17,-1.1,100.1,NA)
-12.001>=c(500.001,0.001,-5.001,-12.001,-30)
c(2.,3.,-3.,4.,NA)==c(2.,-3.,-3.,1.,NA)
#bit operators
17<=c(17,-1,100,NA) & -12>=c(500,0,-5,-12,-30)
17<=c(17,-1,100,NA) | -12>=c(500,0,-5,-12,-30)
