double arcBhh(double asin,double acos)
asin=arcsin
acos=arccos
return=derece
asin=arcsin
acos=arccos
return=derece
PHP:
package arcbhh;
/**
*
* @author Sercan
*/
public class Arcbhh {
public static double arcBhh(double asin,double acos){
int bolge =0;
if(asin>=0 && acos>=0)
bolge=0;
else if (asin>0 && acos<0)
bolge=1;
else if (asin<0 && acos<=0)
bolge=2;
else if (asin<0 && acos>=0)
bolge=3;
return ((bolge*90)+Math.toDegrees(Math.asin(Math.abs(asin))));
}
public static void main(String[] args) {
System.out.println(arcBhh(Math.sin(Math.toRadians(227)),Math.cos(Math.toRadians(227))));
}
}