public static double search ( int [ ] x , int [ ] c ) {
  double l = - 100001 , r = 100001 ;
  int L = 100 ;
  while ( L -- >= 0 ) {
    double ll = ( l * 2 + r ) / 3 ;
    double rr = ( l + r * 2 ) / 3 ;
    if ( f ( x , c , ll ) > f ( x , c , rr ) ) l = ll ;
    else r = rr ;
  }
  return l ;
}

public static double search ( int [ ] x , int [ ] c ) { double l = - 100001 , r = 100001 ; int L = 100 ; while ( L -- >= 0 ) { double ll = ( l * 2 + r ) / 3 ; double rr = ( l + r * 2 ) / 3 ; if ( f ( x , c , ll ) > f ( x , c , rr ) ) l = ll ; else r = rr ; } return l ; }
(method_declaration (modifiers) type: (floating_point_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (unary_expression operand: (decimal_integer_literal))) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (while_statement condition: (parenthesized_expression (binary_expression left: (update_expression (identifier)) right: (decimal_integer_literal))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (decimal_integer_literal)) right: (identifier))) right: (decimal_integer_literal)))) (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal)))) right: (decimal_integer_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) consequence: (expression_statement (assignment_expression left: (identifier) right: (identifier))) alternative: (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (return_statement (identifier))))