Java Abs abs_min(double a, double b)

Here you can find the source of abs_min(double a, double b)

Description

abmin

License

Open Source License

Declaration

public static double abs_min(double a, double b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static double abs_min(double a, double b) {
        if (Math.abs(a) > Math.abs(b)) {
            return Math.signum(a) * b;
        } else {//from  w  ww.java 2s .com
            return a;
        }
    }
}

Related

  1. Abs(Object in)
  2. abs(short x)
  3. abs2(double[][] IN)
  4. abs2(float[] f)
  5. abs_fractional(double number)
  6. absAngleDifference(double angle1Radians, double angle2Radians)
  7. absApproximation(double x, double M)
  8. absCap(double value, double bounds)
  9. absClamp(double value, double bounds)