Here you can find the source of maxNorm(double[] arr)
public static double maxNorm(double[] arr)
//package com.java2s; //License from project: Apache License public class Main { public static double maxNorm(double[] arr) { double norm = 0; for (double number : arr) { double abs = Math.abs(number); if (abs > norm) { norm = abs;//w w w. ja v a 2 s . c om } } return norm; } }