1234567891011121314151617181920212223242526272829
  1. /**
  2. * Write a description of class advOp here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. import java.util.*;
  8. public class advOp
  9. {
  10. public static double log(double x){
  11. //CALULATES THE LOG OF NUMBER
  12. Console.currentNumber = Math.log(x);
  13. //System.out.println(currentNumber);
  14. return Console.currentNumber;
  15. }
  16. public static double nthRoot(double x, double n){
  17. //CALULATES THE LOG OF NUMBER
  18. Console.currentNumber = Math.pow(Math.E, Math.log(x)/n);
  19. //System.out.println(currentNumber);
  20. return Console.currentNumber;
  21. }
  22. }