Level 4 Level 6
Level 5

Logic, arithmetic and control flow


17 words 0 ignored

Ready to learn       Ready to review

Ignore words

Check the boxes below to ignore/unignore words, then click save at the bottom. Ignored words will never appear in any learning session.

All None

Ignore?
! X
NOT X, elementwise
X & Y
elementwise X AND Y, all elements evaluated
X && Y
sequential X AND Y, only first elements of X, Y used
X | Y
elementwise X OR Y, all elements evaluated
X || Y
sequential X OR Y, only first elements of X, Y used
xor(X, Y)
elementwise exclusive OR of X and Y
M1 %*% M2
matrix multiplication on M1 and M2
3 * 2
multiplication of 3 by 2
3 / 2
division of 3 by 2
3 %/% 2
integer division of 3 by 2
3 ^ 2
exponentiation of 3 by 2
sqrt(3)
square root of 3
outer(V1, V2)
outer product of V1 and V2
for(X in V){print(X)}
repeat for the length of vector V function print(X)
if(X < 2){1} else {2}
sequential conditional: if X < 2 then 1 else 2
ifelse(V < 2, 1, 2)
elementwise conditional: if V < 2 then 1 else 2
while(X < 2){X <- X + 1}
sequential do while X < 2, X <- X + 1