Ad
  • Default User Avatar

    I did this in C and had the same issue. Turned out my math was coming out wrong but it still passed the inital tests. Use printf to check your results againt wolfram and see what happens.