Best Answer

#include<iostream>

int main()

{

std::cout << "sin(1) = " << std::sin(1.0) << std::endl;

std::cout << "cos(1) = " << std::cos(1.0) << std::endl;

std::cout << "tan(1) = " << std::tan(1.0) << std::endl;

std::cout << "asin(1) = " << std::asin(1.0) << std::endl;

std::cout << "acos(1) = " << std::acos(1.0) << std::endl;

std::cout << "atan(1) = " << std::atan(1.0) << std::endl;

}

Output:

sin(1) = 0.841471

cos(1) = 0.540302

tan(1) = 1.55741

asin(1) = 1.5708

acos(1) = 0

atan(1) = 0.785398

Study guides

☆

Q: How do you use sin in c plus plus?

Write your answer...

Submit

Still have questions?

Related questions

Yes, but you would need to know a degree measure too. [Sin(A)/a] = [Sin(B)/b] = [Sin(C)/c] [a/Sin(A)] = [b/Sin(B)] = [c/Sin(C)]

How the turbo c plus plus use what in the computer.

just as you do it in C.

You need to use the sine rule. If the three angles are A, B and C and the sides opposite them are named a, b and c then, by the sine rule, a/sin(A) = b/sin(b) = c/sin(C) Therefore b = a*sin(B)/sin(A) = a*y where y = sin(B)/sin(A) can be calculated and c = a*sin(C)/sin(A) = a*z where z = sin(C)/sin(A) can be calculated. then perimeter = p = a + b + c = a + ay + az = a*(1 + y + z) therefore a = p/(1 + y + z) or a = p/[1 + sin(B)/sin(A) + sin(C)/sin(A)]. Everything on the right hand side is known and so a can be calculated. Once that has been done, b = a*y and c = a*z.

To compile a program in C++, you would use a compiler, such as Dev C++

sin7x-sin6x+sin5x

Yes, you are right, you can use multiple inheritance in c plus plus and not in Java. What is the question?

Only if you have a C++ compiler.

depends what you use it for. c++ = object oriented c = not object oriented

Use "typedef" : both in C and C++.

To use C++ in Netbeans you will need a C++ compiler.

Sure.

People also asked