Here you can find the source of findMax(double[] u, int startU, int length)
public static double findMax(double[] u, int startU, int length)
//package com.java2s; //License from project: Open Source License public class Main { public static double findMax(double[] u, int startU, int length) { double max = -1; int index = startU; int stopIndex = startU + length; for (; index < stopIndex; index++) { double val = u[index]; val = (val < 0.0D) ? -val : val; if (val > max) max = val; }/* w ww .j a v a 2s . c om*/ return max; } }