public static double f ( int [ ] x , int [ ] c , double p ) {
  double max = 0 ;
  int N = x . length ;
  for ( int i = 0 ;
  i < N ;
  i ++ ) {
    max = Math . max ( max , Math . abs ( p - x [ i ] ) * c [ i ] ) ;
  }
  return max ;
}

public static double f ( int [ ] x , int [ ] c , double p ) { double max = 0 ; int N = x . length ; for ( int i = 0 ; i < N ; i ++ ) { max = Math . max ( max , Math . abs ( p - x [ i ] ) * c [ i ] ) ; } return max ; }
(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)) (formal_parameter type: (floating_point_type) name: (identifier))) body: (block (local_variable_declaration type: (floating_point_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (array_access array: (identifier) index: (identifier))))) right: (array_access array: (identifier) index: (identifier))))))))) (return_statement (identifier))))