Here you can find the source of radians(double w)
public static double radians(double w)
//package com.java2s; public class Main { public static double radians(double w) { long iw = (long) Math.floor(w); return (Math.abs(iw % 360) * Math.PI / 180.0); }// w w w.j av a2 s . com }