Results 1 to 1 of 1
-
Conversion between polar and rectangular coordinates
Java Code:import java.lang.*; strictfp class Logs { 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); } }"The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal
Similar Threads
-
Music File Conversion
By Dave Almighty in forum Advanced JavaReplies: 11Last Post: 04-21-2008, 03:30 AM -
bytearray to string conversion
By mew in forum New To JavaReplies: 1Last Post: 01-28-2008, 10:39 AM -
Java3D: Clicking and getting coordinates?
By seabhcan in forum Advanced JavaReplies: 0Last Post: 01-11-2008, 02:46 PM -
Object locations via grid coordinates HELP.
By deadman_uk in forum New To JavaReplies: 4Last Post: 11-18-2007, 08:32 PM -
Arc2D.Double coordinates
By alley in forum Java 2DReplies: 2Last Post: 11-07-2007, 10:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks