2:42 am - Friday April 19, 2019

Math Example Program for atan2(double y,double x)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
//Example Program for atan2(double y,double x)
/**
 * @author:candidjava.com
 * @description:Program for atan2(double y,double x)
 */
public class atan2 {
	public static void main(String args[]) {
		double x = 45.0;
		double y = 30.0;

		System.out.println(Math.atan2(x, y));// atan2(x,y) method to find angle
	}
}

out put:-
0.982793723247329

Filed in: Z-A All Java Codes

Comments are closed.