Answers for "python converter to c"

C++
0

python converter to c

max1 = -1
Posted by: Guest on January-20-2021
0

python converter to c

def fitness(cand):
    candidato=[]   
    for ia in range (75):
        soma1=0
        soma2=0
        soma3=0
        ib=cand*12 #endereço do individuo dentro da matriz B
        for j in range (nv): 
            soma1 = out[ia][ib+j] + soma1 #soma elementos do cluster 1
            soma2 = out[ia][ib+j+nv] + soma2 #soma elementos do cluster 2
            soma3 = out[ia][ib+nv*2] + soma3 #soma elementos do cluster 3
                        
        candidato.append(min(np.sqrt(soma1),np.sqrt(soma2),np.sqrt(soma3)))
        
    return np.sum(candidato)
Posted by: Guest on January-07-2021
0

python converter to c

void(){
	int a = 1;
    int b = 4;
    
    int c = a+b;
    return;
    }
Posted by: Guest on January-07-2021

Browse Popular Code Answers by Language