1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lorasvet [3.4K]
3 years ago
11

The trigonometry book says: sin^2(t) + cos^2(t) = 1 Write a Python program that verifies the formula with the help of the Python

Math module. Note that the trigonometric functions in the module act on the angles in radians. Your program should perform the following steps 3 times: 1. Pick a random number between 0 and 180 degrees representing an angle in degrees, say Dangle 2. Convert the angle from degrees to radians, say Rangle 3. Use the Math module to find and print the values of sin(Rangle) and cos(Rangle), and 4. Compute and print the value of the above expression: sin^2(Rangle) + cos^2(Rangle). You can then visually verify if the result printed is 1 (or close to it).
Computers and Technology
1 answer:
MAXImum [283]3 years ago
6 0

Answer:

If you open your python-3 console and execute the following .py code you will have the following output. (Inputing 20 e.g)

Write the angles in degrees: 20

radian angles is:  0.3490658503988659

cosene( 0.3490658503988659 ) =  0.9396926207859084

sine( 0.3490658503988659 ) =  0.3420201433256687

sin^2( 0.3490658503988659 ) + cos^2( 0.3490658503988659 ) =  1.0

Explanation:

Code

import math

for i in range(1,4):

   angle = int(input('Write the angles in degrees: '))

   #mat library better works with radians

   angle_radians = (angle*math.pi)/180

   #print output

   print('radian angles is: ',angle_radians)

   print('cosene(',angle_radians,') = ',math.cos(angle_radians))

   print('sine(',angle_radians,') = ',math.sin(angle_radians))

   res = (math.sin(angle_radians))**2 + (math.cos(angle_radians))**2

   print('sin^2(',angle_radians,') + cos^2(',angle_radians,') = ',res)

You might be interested in
∀פפIN∀W∀ qwda dawdawdawdawd<br> BAN ME NOW
Dvinal [7]

Answer:

why

Explanation:

6 0
3 years ago
What is the main difference between cloud computing and SaaS?
Artemon [7]

The answer is C: Cloud computing is a service, and SaaS is a platform.

Cloud computing and SaaS are closely related terms, but are different. Cloud computing consist of infrastructure and services and can be described as the delivery of computer services like, storage, databases, servers, and more over the internet. On the other hand, SaaS can refer to as a software delivery model licensed differently to on-premise applications and provide users with access to a vendor’s cloud based web applications or software.   


7 0
3 years ago
This is a python program.
denpristay [2]

Answer:

word = input("Type your name: ")

print(len(word))

Explanation:

The len function will count all the chars in the string.

7 0
4 years ago
What action(s) should commanders consider to ensure information sharing with partners of foreign countries?
timofeeve [1]

Answer:

The correct answer to the following question will be given below:

Explanation:

  • Working to develop sufficient power to allow foreigners to do so.
  • Disclosure and sharing of information (includes staffed by Foreign Disclosure Officers (FDO).
  • Trying to instill an open culture that balances with the stakeholders an attitude of "want-to-share" and "want some-to-know."
  • Consideration of both digital and physical communication implies information gain and knowledge creation.
7 0
4 years ago
How many fragments are generated?
Sedaia [141]

Answer:

The answer is B.4 hope this helps

3 0
3 years ago
Other questions:
  • Which feature is a component of a database application?
    7·1 answer
  • Which statement identifies what the students will be graded on?
    5·2 answers
  • What is software ownership
    6·1 answer
  • PowerPoint’s _____ feature can assist you in finding answers to questions such as “How can I specify which slides to print?” a.
    6·1 answer
  • A function may return a pointer, but the programmer must ensure that the pointer:
    14·1 answer
  • What problems have arisen regarding use of the Internet for global business transactions, and how are they being resolved?
    15·1 answer
  • Moving read emails to a folder is a great way to stay organized. <br> A) True <br> B) False
    7·2 answers
  • How do you delete an credit card off an iPhone 7
    5·1 answer
  • What are the other way of getting website static​
    14·2 answers
  • A social service agency hires accenture to improve training and experiences for caseworkers. What is one way accenture can use v
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!