/** * Write a description of class TrigFeatures here. * * @author (your name) * @version (a version number or a date) */ public class TrigFeatures extends MainApplication { // instance variables - replace the example below with your own private int x; private double sinNumber; private double cosineNumber; private double tangentNumber; private double inverseSinNumber; private double inverseCosineNumber; private double inverseTangentNumber; private double radiansNumber; private double degreesNumber; /** * Constructor for objects of class TrigFeatures */ public TrigFeatures() { // initialise instance variables x = 0; } /** * An example of a method - replace this comment with your own * * @param y a sample parameter for a method * @return the sum of x and y */ public double sin(double sinThis) { sinNumber = Math.sin(sinThis); return sinNumber; } public double inverseSin(double inverseThisSin) { inverseSinNumber = 1 / Math.sin(inverseThisSin); return inverseSinNumber; } public double cos(double cosThis) { cosineNumber = Math.cos(cosThis); return cosineNumber; } public double inverseCos(double inverseThisCosine) { inverseCosineNumber = 1 / Math.cos(inverseThisCosine); return inverseCosineNumber; } public double tan(double tanThis) { tangentNumber = Math.tan(tanThis); return tangentNumber; } public double inverseTan(double inverseThisTan) { inverseTangentNumber = 1 / Math.tan(inverseThisTan); return inverseTangentNumber; } public double radians(double makeRadians) { radiansNumber = Math.toRadians(makeRadians); return radiansNumber; } public double degrees(double makeDegrees) { degreesNumber = Math.toRadians(makeDegrees); return degreesNumber; } }