2016 Update

This commit is contained in:
Tina Müller 2016-12-05 22:15:40 +01:00
parent 948b86eafa
commit dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions

View file

@ -0,0 +1,2 @@
$IsOdd = -not ( [bigint]$N ).IsEven
$IsEven = ( [bigint]$N ).IsEven

View file

@ -0,0 +1,2 @@
$IsOdd = [boolean]( $N -band 1 )
$IsEven = [boolean]( $N -band 0 )

View file

@ -0,0 +1,2 @@
$IsOdd = $N % 2 -ne 0
$IsEven = $N % 2 -eq 0

View file

@ -1,9 +0,0 @@
function parity($n) {
if($n%2 -eq 0) {
"$n is even"
} else {
"$n is odd"
}
}
parity 0
parity 1