1234567891011121314151617181920212223242526272829 |
-
- /**
- * Write a description of class advOp here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- import java.util.*;
- public class advOp
- {
-
- public static double log(double x){
- //CALULATES THE LOG OF NUMBER
- Console.currentNumber = Math.log(x);
- //System.out.println(currentNumber);
- return Console.currentNumber;
- }
-
- public static double nthRoot(double x, double n){
- //CALULATES THE LOG OF NUMBER
- Console.currentNumber = Math.pow(Math.E, Math.log(x)/n);
- //System.out.println(currentNumber);
- return Console.currentNumber;
- }
-
-
-
- }
|