This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 84 46 53 3 46 42 10 49 34 11 49 70 94 62 48 96 76 19 17 41 68 12 32 47 26 42 94 20 93 76 91 71 92 6 83 42 53 51 30 37 23 3 82 18 72 41 97 43 100 7 39 60 89 20 15 76 94 22 77 39 21 80 98 40 19 66 99 43 16 13 47 48 38 89 85 68 70 15 21 72 32 52 55 29 71 58 64 81 45 42 3 52 95 70 48 30 57 47 89 80 88 71 66 18 14 28 30 13 95 99 61 47 78 40 6 59 14 57 29 70 39 10 33 100 15 46 71 2 69 92 92 43 7 15 9 35 79 21 86 11 77 51 60 35 44 80 31 45 33 40 32 38 79 24 84 83 13 15 46 8 97 81 34 1 14 38 79 9 2 76 71 53 19 82 11 7 96 83 72 37 90 22 44 90 68 100 11 23 78 22 77 25 31 15 92 56 45 28 20 3 32 25 32 8 86 67 16 58 83 2 2 42 75 18 79 16 32 1 66 3 52 16 17 33 31 34 84 8 82 45 60 13 99 10 47 22 57 9 25 9 48 39 21 77 38 97 19 57 16 100 88 4 17 78 80 84 66 83 36 64 11 92 50 66 16 24 47 10 83 15 58 75 26 1 100 10 51 100 85 51 41 33 49 89 68 85 69 60 23 31 7 69 55 11 100 81 27 69 28 79 41 91 56 58 27 100 83 12 83 81 7 77 18 85 46 23 62 90 55 99 100 5 18 41 39 37 29 15 56 42 78 79 5 11 100 88 51 91 44 39 54 95 19 35 97 53 44 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Get list of courses, store is A7:A | |
=unique( //take the list and remove duplicates | |
transpose( //flips rows/columns along a TL-->BR diagonal | |
split( //split up stuff by whatever has a space between it | |
ArrayFormula( //use forumlas on an array, I think this is like map | |
concatenate('Student sign-in'!E2:E&" ") //put all the course sign-ins into a list seperated by spaces | |
), | |
" " | |
) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
josh@josh-HP-ZBook-15:~/Documents/2016S-Notes/cs385/workspace/hw1_sieve$ ./sieve | |
**************************** Sieve of Eratosthenes **************************** | |
Search for primes up to: 20000 | |
Number of primes found: 2262 | |
Primes up to 20000: | |
2 3 5 7 11 13 17 19 23 29 31 37 41 | |
43 47 53 59 61 67 71 73 79 83 89 97 101 | |
103 107 109 113 127 131 137 139 149 151 157 163 167 | |
173 179 181 191 193 197 199 211 223 227 229 233 239 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <cstdlib> //for system() | |
#include <fstream> | |
#include <math.h> | |
#include <algorithm> | |
#include <numeric> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <cstdlib> //for system() | |
#include <fstream> | |
#include <math.h> | |
#include <algorithm> | |
#include <numeric> | |
#include <vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <cstdlib> | |
#include <boost/random.hpp> | |
#include <boost/generator_iterator.hpp> | |
#include <boost/accumulators/accumulators.hpp> | |
#include <boost/accumulators/statistics/stats.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <cstdlib> | |
#include <boost/random.hpp> | |
#include <boost/generator_iterator.hpp> | |
#include <boost/accumulators/accumulators.hpp> | |
#include <boost/accumulators/statistics/stats.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | 0.068752889 | 0.037500796 | |
---|---|---|---|
-0.031092729 | 0.968374816 | 0.743494347 | |
0.031092729 | 0.543203528 | 0.500660391 | |
0 | 0.009969506 | 0.272924522 | |
0.014 | -0.007 | 0.655151916 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <cstdlib> | |
#include <boost/random.hpp> | |
#include <boost/generator_iterator.hpp> | |
#include <boost/accumulators/accumulators.hpp> | |
#include <boost/accumulators/statistics/stats.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Josh Gribbon | |
QF365 - Data Structures and Algorithms | |
Code to parse a csv file with C++, using data from yahoo finance for the DJIA | |
*/ | |
void printData(string ticker){ | |
ifstream readObject; | |
string line; | |
string fPath = "data/" + ticker + ".csv"; | |
readObject.open(fPath.c_str()); |