- #1
FrostScYthe
- 80
- 0
Hey after I run my program in C++ I get my results this way with this line of code:
cout << setprecision(7) << fa << '\t' << fm << '\t' << fabs(b-a);
f(a) f(m) error
-308 154.375 4.5
-308 25.70313 2.25
-308 -111.248 1.125
-111.248 -35.8313 0.5625
-35.8313 -3.395538 0.28125
-3.395538 11.56259 0.140625
-3.395538 4.186766 0.0703125
-3.395538 0.4215546 0.03515625
I want to make it tidier, and for the columns to be straight, anyone know how to do that easily?
cout << setprecision(7) << fa << '\t' << fm << '\t' << fabs(b-a);
f(a) f(m) error
-308 154.375 4.5
-308 25.70313 2.25
-308 -111.248 1.125
-111.248 -35.8313 0.5625
-35.8313 -3.395538 0.28125
-3.395538 11.56259 0.140625
-3.395538 4.186766 0.0703125
-3.395538 0.4215546 0.03515625
I want to make it tidier, and for the columns to be straight, anyone know how to do that easily?