Java Array Average average(double x1, double x2)

Here you can find the source of average(double x1, double x2)

Description

average

License

Open Source License

Declaration

public static double average(double x1, double x2) 

Method Source Code

//package com.java2s;
/*/*  ww w .j av a2s.c  om*/
 * casim, cellular automaton simulation for multi-destination pedestrian
 * crowds; see www.cacrowd.org
 * Copyright (C) 2016-2017 CACrowd and contributors
 *
 * This file is part of casim.
 * casim is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 *
 */

public class Main {
    public static double average(double x1, double x2) {
        return (x1 + x2) / 2;
    }
}

Related

  1. average(Double sum, Double size)
  2. average(double values[])
  3. average(double x, double y)
  4. average(double... args)
  5. average(double... vals)
  6. average(double[] a)
  7. average(double[] a)