static ArrayList values_of_r_and_a ( double m , double n , double mth , double nth ) {
  if ( m < n ) {
    double t = m ;
    n = m ;
    m = t ;
    t = mth ;
    mth = nth ;
    nth = t ;
  }
  double r = Math . pow ( mth / nth , 1.0 / ( m - n ) ) ;
  double a = mth / Math . pow ( r , ( m - 1 ) ) ;
  ArrayList arr = new ArrayList ( ) ;
  arr . add ( a ) ;
  arr . add ( r ) ;
  return arr ;
}

static ArrayList values_of_r_and_a ( double m , double n , double mth , double nth ) { if ( m < n ) { double t = m ; n = m ; m = t ; t = mth ; mth = nth ; nth = t ; } double r = Math . pow ( mth / nth , 1.0 / ( m - n ) ) ; double a = mth / Math . pow ( r , ( m - 1 ) ) ; ArrayList arr = new ArrayList ( ) ; arr . add ( a ) ; arr . add ( r ) ; return arr ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier)) (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (decimal_floating_point_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))))) (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (type_identifier) arguments: (argument_list)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier))))