From 284ce56948aae60134a1073c6499c7fb97ffb326 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 20 Apr 2019 21:15:46 +0200 Subject: More reorganisation --- aberth/util.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 aberth/util.cpp (limited to 'aberth/util.cpp') diff --git a/aberth/util.cpp b/aberth/util.cpp deleted file mode 100644 index b8f6edc..0000000 --- a/aberth/util.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "util.h" - - -ostream& operator<<(ostream &os, const Poly &p) { - static const char *supers[10] = { - "⁰", "¹", "²", "³", "⁴", "⁵", "⁶", "⁷", "⁸", "⁹" - }; - - os << p[0]; - - for (int i = 1; i < (int)p.size(); i++) { - if (p[i] < 0) os << " - " << -p[i]; - else if (p[i] > 0) os << " + " << p[i]; - else continue; - - os << "x"; - - if (i == 1) continue; - - ostringstream ss; - ss << i; - string s = ss.str(); - for (char c : s) os << supers[c - '0']; - } - - return os; -} -- cgit v1.2.3-70-g09d2