//Diego Martinez CSC5 Chapter 3, P. 147,#20
/*******************************************************************************
* Working Angle Calculator
* ______________________________________________________________________________
* This program that helps users compute the sine, cosine, and tangent of an
* angle given in radians.
*
* Computation is based on the Formula:
* sine = std::sin(angle)
* cosine = std::cos(angle)
* tangent = std::tan(angle)
*_______________________________________________________________________________
* INPUT
* The program prompts the user to enter an angle in radians
*
* OUTPUT
* Sine of the angle (sin(θ))
* Cosine of the angle (cos(θ))
* Tangent of the angle (tan(θ))
*
*******************************************************************************/
#include <iostream>
#include <iomanip> // For std::fixed and std::setprecision
#include <cmath> // For sin, cos, tan
int main() {
double angle;
// Ask the user to enter an angle in radians
std::cout << "Enter an angle in radians: ";
std::cin >> angle;
// Compute sine, cosine, and tangent
double sine = std::sin(angle);
double cosine = std::cos(angle);
double tangent = std::tan(angle);
// Display the results in fixed-point notation with 4 decimal places
std::cout << std::fixed << std::setprecision(4);
std::cout << "Sine: " << sine << "\n";
std::cout << "Cosine: " << cosine << "\n";
std::cout << "Tangent: " << tangent << "\n";
return 0;
}