This file contains hidden or 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
| def polynomial(degree): | |
| def poly(x): | |
| return np.asarray([x**g for g in range(degree)]).reshape((degree, x.shape[0])).transpose() | |
| return poly |
This file contains hidden or 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
| int ggt(int m, int n) | |
| { | |
| if(!m) | |
| return n; | |
| return ggt(n%m , m); | |
| } | |
| int phi(int n) | |
| { | |
| int cnt = 0; |
This file contains hidden or 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 <stdio.h> | |
| char lower(char c){ | |
| return c | 0b0100000; | |
| } | |
| char upper(char c){ | |
| return c & 0xdf; | |
| } |
This file contains hidden or 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 <stdio.h> | |
| unsigned long long int c(unsigned long long int ,unsigned long long int); | |
| unsigned long long int e(unsigned long long int); | |
| unsigned long long int f(unsigned long long int); | |
| #define X 10 | |
| #define Y 20 | |
| unsigned long long int pULLU(unsigned long long int x){ |
NewerOlder