aboutsummaryrefslogtreecommitdiffstats
path: root/src/zsetup.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-07-28φ(−n) = φ(n), φ(1) = 1, φ(0) = 0Mattias Andrée1-2/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-28Fix small error in solution for [13] The totientMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-28Add exercises:Mattias Andrée1-0/+134
[▶05] zlshu and zrshu [▶M15] Modular left-shift [▶08] Modular left-shift, extended [13] The totient
2016-07-28Fix spacingMattias Andrée1-3/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-28Fix difficulty ratings on exercisesMattias Andrée1-3/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-27Add exercice: [▶10] Modular powers of 2Mattias Andrée1-0/+17
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Exercise solutions: the return type should be on the line above the function name, like in the rest of the manualMattias Andrée1-4/+8
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Manual refdup should not return intMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Fix another error in the solution for Powers of the golden ratioMattias Andrée1-5/+7
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Fix a small error in the solution for Powers of the golden ratioMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Fix typoMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Manual: The Kronecker symbolMattias Andrée1-4/+56
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Manual: How to calculate the Jacobi symbolMattias Andrée1-3/+43
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Style fixMattias Andrée1-4/+4
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Manual: how to calculate the legendre symbolMattias Andrée1-1/+17
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Add exercise: [30] Powers of the golden ratioMattias Andrée1-0/+38
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Alternative solution for [20] Fast primality test with bounded perfectionMattias Andrée1-0/+9
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Add exercise: [20] Fast primality test with bounded perfectionMattias Andrée1-0/+36
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-25Add exercise: [11] Lucas–Lehmer primality testMattias Andrée1-0/+85
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Add pronunciation of LucasMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Add exercises: [10] Fermat primality testMattias Andrée1-0/+60
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Fix type of the last parameter for zptest in its man pageMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Fix typoMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Saturated subtraction: { => r = }a ∸ b = .....Mattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Mention that a composite that passes a heuristic primality test is kown as a pseudoprimeMattias Andrée1-2/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Make “You should already [...]” small and italicMattias Andrée1-2/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Add exercise: [▶02] Saturated subtractionMattias Andrée1-1/+31
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Add exercise: [▶M17] Factorials invertedMattias Andrée2-7/+86
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Clean up bench/util.hMattias Andrée3-60/+67
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Rename bench/{benchmark.h => util.h}Mattias Andrée5-6/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-24Add exercise: [05] Fast primality testMattias Andrée1-0/+37
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-23Add exercise: [M20] Reverse factorisation of factorialsMattias Andrée1-1/+48
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-07-23Add two exercises to the manualMattias Andrée3-1/+100
[M10] Convergence of the Lucas Number ratios [M12+] Factorisation of factorials
2016-06-22update todoMattias Andrée1-0/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Manual: jargon fixMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Manual: fix sign of example for zxorMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Manual: connectivesMattias Andrée1-12/+63
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Manual: remove text that should be been removed earlierMattias Andrée1-2/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Add examples: sum, prod, avg, medianMattias Andrée4-0/+173
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19doc: vulnerabilities concerning cryptographic applicationsMattias Andrée2-5/+22
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-19Manual: on bsdntMattias Andrée1-2/+6
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-14Fix typos found by MarcMattias Andrée1-14/+14
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-10Add a comment about storing the carry flagMattias Andrée1-0/+5
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-07Update todo with benchmarking ideasMattias Andrée1-0/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-06Manual: Logic => ConnectivesMattias Andrée1-2/+2
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-06Manual: lcm: warn that gcd may be zeroMattias Andrée1-0/+3
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-06Fix typoMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-05todo: zmodsqr will also be removed if zmodmul is removedMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-05Manual: minor text fixMattias Andrée1-1/+1
Signed-off-by: Mattias Andrée <maandree@kth.se>
2016-06-05todo: benchmarks shall ensure that the CPU is throttled before the benchmarking startsMattias Andrée1-0/+9
Signed-off-by: Mattias Andrée <maandree@kth.se>