text: #include "solver.h"
  #include <cmath>
  #include <math.h>
  #include <stdexcept>
  
  void solve(float a, float b, float c, float& x1, float& x2)
  {
      float d = (b * b) - (4 * a * c);
  
      if (d < 0)
      {
          throw std::logic_error{"error: discriminant < 0"};
      }
  
      x1 = (-b - std::sqrt(d)) / (2 * a);
      x2 = (-b + std::sqrt(d)) / (2 * a);
  }
  