Using polymorphism display the following: Trigonometric_angles types
Value of sin
value of cos
Value of Tan
Using JAVA.
Solution:
import java.util.*;
class Angles{
void display(double degree){
System.out.println("Output is");
}
}
//function to calculate sin
class Sin extends Angles{
//to calc and disp output
void display(double degree){
//converting deg to radians
double rad = Math.toRadians(degree);
System.out.println("Value of sin is");
System.out.println(Math.sin(rad));
}
}
//function to calculate cos
class Cos extends Angles{
//to calc and disp output
void display(double degree){
//converting deg to radians
double rad = Math.toRadians(degree);
System.out.println("Value of cos is");
System.out.println(Math.cos(rad));
}
}
////function to calculate tan
class Tan extends Angles{
//to calc and disp output
void display(double degree){
//converting deg to radians
double rad = Math.toRadians(degree);
System.out.println("Value of tan is");
System.out.println(Math.tan(rad));
}
}
public class Main
{
public static void main(String[] args) {
Angles a= new Sin();
Angles b= new Cos();
Angles c= new Tan();
a.display(45.0);
b.display(45.0);
c.display(45.0);
}
}
Using polymorphism display the following: Trigonometric_angles types Value of sin value of cos Value of Tan...
Using the identity sin? 0 + cos² 0 = 1, find the value of tan 6, to the nearest hundredth, if sin 0 = -0.62 and 3 < 0 < 27.
Find the exact value of the expressions cos(a + b), sin(a + b) and tan(a+) under the following conditions: sin(a)= a lies in quadrant I, and sin(B) = - Blies in quadrant II. a. cos(a +B)= (Simplify your answer. Type an exact answer, using radicals as needed. Use integers or fractions for any numbers in
Find sin , cos , and tan - O A. sino= _ . cosO=- , tan 0= - 13 O B. sino= - ], COSO = 3, tan o=1/3 o c. sino=- , coso - ., tan og OD. sino - 13. COSO = 1, tan 0=13 Find the exact value of sin 510º. O B. v O A. OC. O D. Find the exact value of tan 111. OA OB. Z OD. 13 OC. 2 Suppose that there is...
Find the exact value of: sin(cos^-1(-5/13) + tan^-1(8/15 12. Find the exact value of: sin(cos + tan 13
Find the exact value of the following expression. 13 tan sin V2 3 COS
Find the exact value of the expressions cos(a +B), sin(Q+B) and tan(a +B) under the following conditions: sin(a) = 15 17 40 a lies in quadrant I, and sin(B) = 41 Blies in quadrant II. a. cos(a + b) = (Simplify your answer. Type an exact answer, using radicals as needed. Use integers or fractions for any numbers
If tan = Na find the exact value of each of the following. (a) sin (b) cos (a) sin =0 (Type an exact answer, using radicals as needed.) (b) cos z =0 (Type an exact answer, using radicals as needed.)
6. (a) Find the exact value of tan (2 cos ()). (b) Given that sin 0 and cos 0 is negative. Find the exact value of tan(0 +T).
and << find the exact value of 4. If cos=- 4 a. sin e 6, tan 8 5. Prove the following identity. (sinx+cos x) =1+sin 2x 6. Ifcos(x)=5, and xc IV, find the exact value of each of the following. a.sin(2x) b.cos NI
cot B-tAn a cos a sin B Sm (50) sin (ae) E Sin (tan u-tan v)