double delta double ans1 ans2 double ans1 ans2 double del_x double -an

1
2
3
4
double delta = (double)ans1[0] * ans2[1] - (double)ans1[1] * ans2[0];
double del_x = (double)(-ans1[2]) * ans2[1] - (-ans2[2] * (double)ans1[1]);
double del_y = (double)(ans1[0] * (-ans2[2])) - ((double)ans2[0] * (-ans1[2]));
cout << fixed << setprecision(4) << del_x / delta << endl << del_y / delta << endl;