title: Find Harmonic Mean Using Arithmetic Mean Geometric Mean
signature: findHarmonicMeanUsingArithmeticMeanGeometricMean(a, b) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return (actual - expected).abs() < 1e-09;
  }
  
  String driver(a, b, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(a, b), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          54, 83, 
          65.43065693430657)
      }");
  
      print("TEST-1...${driver(
          42, 56, 
          48.0)
      }");
  
      print("TEST-2...${driver(
          63, 12, 
          20.16)
      }");
  
      print("TEST-3...${driver(
          19, 76, 
          30.4)
      }");
  
      print("TEST-4...${driver(
          41, 50, 
          45.054945054945065)
      }");
  
      print("TEST-5...${driver(
          7, 26, 
          11.030303030303031)
      }");
  
      print("TEST-6...${driver(
          39, 42, 
          40.444444444444436)
      }");
  
      print("TEST-7...${driver(
          11, 64, 
          18.773333333333333)
      }");
  
      print("TEST-8...${driver(
          96, 81, 
          87.86440677966101)
      }");
  
      print("TEST-9...${driver(
          15, 54, 
          23.47826086956522)
      }");
  
      return 0;
  }
source_py: def find_harmonic_mean_using_arithmetic_mean_geometric_mean(a, b):
      AM = ((a + b) / 2)
      GM = math.sqrt((a * b))
      HM = ((GM * GM) / AM)
      return HM
source_cpp: double find_harmonic_mean_using_arithmetic_mean_geometric_mean(int a, int b) {
    double AM, GM, HM;
    AM = ( a + b ) / 2;
    GM = sqrt ( a * b );
    HM = ( GM * GM ) / AM;
    return HM;
  }