Source Code : Conversion between polar and rectangular coordinates
Java Is Open Source Programming Language You Can Download From Java and Java Libraries From http://www.oracle.com.
Click Here to download
We provide this code related to title for you to solve your developing problem easily. Libraries which is import in this program you can download from http://www.oracle.com.
Click Here or search from google with Libraries Name you get jar file related it
Conversion between polar and rectangular coordinates
strictfp class MainClass {
public static void main(String[] args) {
double num, loge, log10, aloge, alog10;
// Obtain input from user
num = 0.111d;
// Calculate and display the natural logarithm
loge = Math.log(num);
System.out.println("log base e = " + loge);
// Calculate the common log
log10 = Math.log(num) / Math.log(10.0);
System.out.println("log base 10 = " + log10);
// Calculate the antilogarithm of log base e
aloge = Math.exp(loge);
System.out.println("antilog of log base e = " + aloge);
// Calculate the antilogarithm of log base 10
alog10 = Math.pow(10.0, log10);
System.out.println("anitlog of log base 10 = " + alog10);
}
}
Thank with us