Commit 65de1cc3 authored by nathan1505's avatar nathan1505
Browse files

Version 3.0: All the test cases and code are implemented

parent d525c647
No preview for this file type
......@@ -55,18 +55,20 @@ public class Trig {
// calculates the tan of x (that is in degrees or radians)
public double trigTan(double x) {
return x;
double sum;
sum = trigSin(x)/trigCos(x);
return sum;
// simply converts degrees to radians
public double convertDegreesToRadians(double x) {
return x;
return x * PI/180;
// simply converts radians to degrees
public double convertRadiansToDegrees(double x) {
// TODO Auto-generated method stub
return 0;
return x * 180/PI;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment