Here you can find the source of divdivmin(double a, double b, double c, double d)
public static double divdivmin(double a, double b, double c, double d)
//package com.java2s; //License from project: Open Source License public class Main { public static double divdivmin(double a, double b, double c, double d) { return div(a * b, c * d) * Math.min(c, d); }// w w w. ja v a2 s.c o m public static double div(double a, double b) { if (b == 0.0) { return 0.0; } else { return a / b; } } }