# Initialize the variables that are causing problems $vectorA[1] = 0; $angleA[1] = 0; $vectorB[1] = 0; $angleB[1] = 0;