bonusFunctions.java 689B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Write a description of class bonusFunctions here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class bonusFunctions
  8. {
  9. /**
  10. * An example of a method - replace this comment with your own
  11. *
  12. * @param y a sample parameter for a method
  13. * @return the sum of x and y
  14. */
  15. public Double naturalLogLn(Double x)
  16. {
  17. // put your code here
  18. return Math.log(x);
  19. }
  20. public Double LogBaseTenOfAnumber(Double x)
  21. {
  22. // put your code here
  23. return Math.log10(x);
  24. }
  25. public Double exponential(Double x)
  26. {
  27. // put your code here
  28. return Math.exp(x);
  29. }
  30. }