static double FindSum ( double m , double n , double mth , double nth , double p ) {
  ArrayList ar = values_of_r_and_a ( m , n , mth , nth ) ;
  double a = ( double ) ar . get ( 0 ) ;
  double r = ( double ) ar . get ( 1 ) ;
  double pth = a * Math . pow ( r , ( p - 1.0 ) ) ;
  return pth ;
}

static double FindSum ( double m , double n , double mth , double nth , double p ) { ArrayList ar = values_of_r_and_a ( m , n , mth , nth ) ; double a = ( double ) ar . get ( 0 ) ; double r = ( double ) ar . get ( 1 ) ; double pth = a * Math . pow ( r , ( p - 1.0 ) ) ; return pth ; }
(method_declaration (modifiers) type: (floating_point_type) 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)) (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (floating_point_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (cast_expression type: (floating_point_type) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (decimal_integer_literal)))))) (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_floating_point_literal)))))))) (return_statement (identifier))))