A new formulation for feedforward neural networks