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
from __future__ import division | |
import numpy as np | |
from scipy import stats | |
def mmk_test(v, alpha = 0.05): | |
""" | |
Performs the Modified Mann-Kendall test to check if there is any trend present. | |
Based on Mann-Kendall test code by Sat Kumar Tomer. Modified to account for autocorrelation (Hamed and Rao 1998) | |
Input: |
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 <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
int main() | |
{ | |
int prob_sudoku[9][9],empty_cell_not[9][9],prob_len,rowcheck=1,columncheck=1,boxcheck=1,going_back_flag=1,repeat,i,j,k,l; | |
char problem[100]; | |
/*INPUT*/ |
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 <stdio.h> | |
int main() | |
{ | |
float n=0.0, cat=1.0; | |
while(n<=33) | |
{ | |
cat = 2*(2*n+1)/(n+2)*cat; | |
n++; | |
printf("Catalan no. %2.0f is %1.0f\n",n,cat); |
NewerOlder