import numpy as np

def mean_square_error(input,t):
    return 0.5*np.sum((input-t)**2)

def cross_error(input,t):
    delta=1e-7
    return -np.sum(t*np.log(input)+delta)
y=np.array([0.1,0.005,0.1,0.0,0.05,0.1,0.0,0.6,0.0,0.0])
t=np.array([0,0,1,0,0,0,0,0,0,0])
print(mean_square_error(y,t))