get Temperature By Longitude Rev - Java java.lang

Java examples for java.lang:Math Convert

Description

get Temperature By Longitude Rev

Demo Code


//package com.java2s;

public class Main {
    private static final int power = 174;

    public static double getTemperatureByLongitudeRev(int longitude) {
        double temp = power * 1 / Math.sin(Math.toRadians(90d - longitude));
        return temp;
    }/*from ww  w  .  j  a v a  2 s .  c o  m*/
}

Related Tutorials