Anonymous user
Angles (geometric), normalization and conversion: Difference between revisions
Angles (geometric), normalization and conversion (view source)
Revision as of 14:34, 16 October 2020
, 3 years ago→{{header|C++}}: new formatting
(→{{header|C++}}: new formatting) |
(→{{header|C++}}: new formatting) |
||
Line 437:
using namespace std;
ostringstream out;
out << " ┌───────────────────┐\n";
out << "
out << "┌─────────────────┼───────────────────┤\n";
for (double i : values)
out << "│ " << setw(15) << fixed << i << defaultfloat << " │ " << setw(17) << fixed << f(i) << defaultfloat << " │\n";
out << "└─────────────────┴───────────────────┘\n";
auto str = out.str();
Line 477 ⟶ 474:
}</lang>
{{out}}
<pre> ┌───────────────────┐
┌─────────────────┼───────────────────┤
│ -2 │ -2 │
│ -1 │ -1 │
Line 494 ⟶ 491:
└─────────────────┴───────────────────┘
...
┌───────────────────┐
┌─────────────────┼───────────────────┤
│ -2 │ -2037.183272 │
│ -1 │ -1018.591636 │
|