code: public static double Lowprecision_Sin(double x) {
  
          //always wrap input angle to -PI..PI
          if (x < -3.14159265)
              x += 6.28318531;
          else if (x > 3.14159265)
              x -= 6.28318531;
  
          //compute sine
          if (x < 0)
              return 1.27323954 * x + .405284735 * x * x;
          else
              return 1.27323954 * x - 0.405284735 * x * x;
      }
docs: Calculate Sin using Quadratic curve.
  
  @param x An angle, in radians.
  @return Result.