0

I've got to perform some mathematical operations which involve the 12th root of 2. The following two lines output the value 1.05946 to the console.

double x = pow (2.0, 1.0/12.0);
cout << x << endl;

I was expecting more significant figures. Is there a better way of getting a precise value (accurate to ~9 sf) for nth roots?

Lammey
  • 179
  • 7

0 Answers0