ScientificFeatures.java 823B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * Write a description of class ScientificFeatures here.
  3. *
  4. * @author (your name)
  5. * @version (a version number or a date)
  6. */
  7. public class ScientificFeatures extends MainApplication
  8. {
  9. // instance variables - replace the example below with your own
  10. private int x;
  11. private double logarithmNumber;
  12. //private double
  13. /**
  14. * Constructor for objects of class ScientificFeatures
  15. */
  16. public ScientificFeatures()
  17. {
  18. // initialise instance variables
  19. x = 0;
  20. }
  21. /**
  22. * An example of a method - replace this comment with your own
  23. *
  24. * @param y a sample parameter for a method
  25. * @return the sum of x and y
  26. */
  27. public double logarithm(double logThis)
  28. {
  29. logarithmNumber = Math.log(logThis);
  30. return logarithmNumber;
  31. }
  32. }