docs: public void setR(double R)
      {
          if(R <= 0 || Double.isNaN(R) || Double.isInfinite(R))
              throw new IllegalArgumentException("R must be positive, not " + R);
          this.R = R;
      }