answersLogoWhite

0


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

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you use sin in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

Can you use the law of sines if 3 sides are given?

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 in the computer?

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


How do you get the sides of the triangle when 3 angles are given and its perimeter?

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.


How do you use conioh header in c plus plus?

just as you do it in C.


How do you solve Sin x plus sin 3x plus sin 5x plus sin 7x equals?

sin7x-sin6x+sin5x


How do you find the length of third side when 2 sides and all three angles are known?

The Law of Sines: with triangle ABC, the angles are A, B, & C. The sides {a, b, & c} are opposite of the respective capital letter vertex.a/sin(A) = b/sin(B) = c/sin(C). You know the angles A, B, C; and two sides (say a & b).So side c = a*sin(C)/sin(A) = b*sin(C)/sin(B).You could also use the Law of Cosines: c^2 = a^2 + b^2 - 2*a*b*cos(C)


Can you use c plus plus in windosh vista?

Only if you have a C++ compiler.


How do you make trigonometric calculator in c plus plus?

include file math.h and you get most C++ functions for trigonometry, for instance,sin(), cos(), tan(), asin(), acos(), and atan() etc.


Which is best C or C plus plus?

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


What is midpointHow do you find the length of the third side of an scalene triangle?

If you have angles, use the sine rule: a/sin A = b/sin B = c/sin C a denotes the side, A the angle opposite the side.


User defined data type in c plus plus?

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


How do we add the C plus plus category in Netbeans?

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