#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
just as you do it in C.
Sure.
Use the C++ getline() function from the standard library.
Nothing.
to locate coordinates ..
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.
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.
just as you do it in C.
sin7x-sin6x+sin5x
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)
Only if you have a C++ compiler.
include file math.h and you get most C++ functions for trigonometry, for instance,sin(), cos(), tan(), asin(), acos(), and atan() etc.
depends what you use it for. c++ = object oriented c = not object oriented
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.
Use "typedef" : both in C and C++.
To use C++ in Netbeans you will need a C++ compiler.