0% found this document useful (0 votes)
10 views2 pages

Function Test

The document contains a C++ program that calculates the tangent squared of an angle input by the user. It converts the angle from degrees to radians and uses trigonometric functions to compute the result. The program then outputs the calculated value of tan² A.

Uploaded by

zerraraizen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Function Test

The document contains a C++ program that calculates the tangent squared of an angle input by the user. It converts the angle from degrees to radians and uses trigonometric functions to compute the result. The program then outputs the calculated value of tan² A.

Uploaded by

zerraraizen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Name: de Guzman, Christian Geordel A.

Section: BSCpE 1-A


Function Test
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double A, b, c=3.1415926535, Tan;
cout<<"Enter the Angle Value: ";
cin>>b;
A= (b*c)/180;
Tan = (1-pow(cos(A),2))/(1-pow(sin(A),2));

cout<<"tan2 A = "<<Tan<<endl;

return 0;
}

You might also like