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
Regarding the Internet of Things (IoT), a business involved in utilities, critical infrastructure, or environmental services can
love history [14]

Answer:

The answer is False

Explanation:

IOT or Internet of things refers to the multiple devices in the world today, which are connected to the internet, they gather and share specific information. Any physical object can become an IOT device once it can be connected to the internet to control its data.

Since, the business is involved in utilities, critical infrastructure, or environmental services, it will not benefit from traffic-monitoring applications.

7 0
3 years ago
How do u know when a website doesnt like u?
stira [4]
Honest answer a website does not have feelings so therefore there is no way to tell if a website likes you or not!! The reason it may not load is because your IT provider or maybe to firewalls that are set up on your modem. Sometimes its not that and you just need to keep you computer up to date that way it can get on the websites! Hope i helped
3 0
3 years ago
Compare Fibonacci (recursion vs. bottom up)
ipn [44]

Answer:

C++ code explained below

Explanation:

#include<bits/stdc++.h>

#include <iostream>

using namespace std;

int FiboNR(int n)

{

int max=n+1;

int F[max];

F[0]=0;F[1]=1;

for(int i=2;i<=n;i++)

{

F[i]=F[i-1]+F[i-2];

}

return (F[n]);

}

int FiboR(int n)

{

if(n==0||n==1)

return n;

else

return (FiboR(n-1)+FiboR(n-2));

}

int main()

{

long long int i,f;

double t1,t2;

int n[]={1,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75};

cout<<"Fibonacci time analysis ( recursive vs. non-recursive "<<endl;

cout<<"Integer FiboR(seconds) FiboNR(seconds) Fibo-value"<<endl;

for(i=0;i<16;i++)

{

clock_t begin = clock();

f=FiboR(n[i]);

clock_t end = clock();

t1=double(end-begin); // elapsed time in milli secons

begin = clock();

f=FiboNR(n[i]);

end = clock();

t2=double(end-begin);

cout<<n[i]<<" "<<t1*1.0/CLOCKS_PER_SEC <<" "<<t2*1.0/CLOCKS_PER_SEC <<" "<<f<<endl; //elapsed time in seconds

}

return 0;

}

7 0
2 years ago
Expain the application areas of ICT in education sector and E-commerce​
miss Akunina [59]

Explanation:

<em>N</em><em>o</em><em>w</em><em>a</em><em>d</em><em>a</em><em>y</em><em>s</em><em> </em><em>a</em><em>l</em><em>m</em><em>o</em><em>s</em><em>t</em><em> </em><em>a</em><em>l</em><em>l</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>s</em><em>c</em><em>h</em><em>o</em><em>o</em><em>l</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>c</em><em>o</em><em>l</em><em>l</em><em>e</em><em>g</em><em>e</em><em> </em><em>u</em><em>s</em><em>e</em><em> </em><em>c</em><em>o</em><em>m</em><em>p</em><em>u</em><em>t</em><em>e</em><em>r</em><em>s</em><em> </em><em>i</em><em>n</em><em> </em><em>c</em><em>l</em><em>a</em><em>s</em><em>s</em><em>r</em><em>o</em><em>o</em><em>m</em><em>s</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>l</em><em>a</em><em>b</em><em>s</em><em> </em><em>t</em><em>o</em><em> </em><em>t</em><em>e</em><em>a</em><em>c</em><em>h</em><em> </em><em>s</em><em>t</em><em>u</em><em>d</em><em>e</em><em>n</em><em>t</em><em>s</em><em>.</em><em>A</em><em> </em><em>t</em><em>e</em><em>a</em><em>c</em><em>h</em><em>e</em><em>r</em><em> </em><em>c</em><em>a</em><em>n</em><em> </em><em>t</em><em>e</em><em>a</em><em>c</em><em>h</em><em> </em><em>e</em><em>f</em><em>f</em><em>e</em><em>c</em><em>t</em><em>i</em><em>v</em><em>e</em><em>l</em><em>y</em><em> </em><em>u</em><em>s</em><em>i</em><em>n</em><em>g</em><em> </em><em>c</em><em>o</em><em>m</em><em>p</em><em>u</em><em>t</em><em>e</em><em>r</em><em>-</em><em>b</em><em>a</em><em>s</em><em>e</em><em>d</em><em> </em><em>p</em><em>r</em><em>e</em><em>s</em><em>e</em><em>n</em><em>t</em><em>a</em><em>t</em><em>i</em><em>o</em><em>n</em><em>s</em><em>.</em><em>S</em><em>t</em><em>u</em><em>d</em><em>e</em><em>n</em><em>t</em><em>s</em><em> </em><em>c</em><em>a</em><em>n</em><em> </em><em>s</em><em>t</em><em>u</em><em>d</em><em>y</em><em> </em><em>d</em><em>i</em><em>f</em><em>f</em><em>e</em><em>r</em><em>e</em><em>n</em><em>t</em><em> </em><em>s</em><em>u</em><em>b</em><em>j</em><em>e</em><em>c</em><em>t</em><em>s</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>c</em><em>o</em><em>m</em><em>p</em><em>l</em><em>e</em><em>t</em><em>e</em><em> </em><em>t</em><em>h</em><em>e</em><em>i</em><em>r</em><em> </em><em>a</em><em>s</em><em>s</em><em>i</em><em>g</em><em>n</em><em>m</em><em>e</em><em>n</em><em>t</em><em> </em><em>b</em><em>y</em><em> </em><em>u</em><em>s</em><em>i</em><em>n</em><em>g</em><em> </em><em>d</em><em>i</em><em>f</em><em>f</em><em>e</em><em>r</em><em>e</em><em>n</em><em>t</em><em> </em><em>s</em><em>o</em><em>f</em><em>t</em><em>w</em><em>a</em><em>r</em><em>e</em><em> </em><em>i</em><em>n</em><em> </em><em>c</em><em>o</em><em>m</em><em>p</em><em>u</em><em>t</em><em>e</em><em>r</em><em>.</em><em>T</em><em>h</em><em>e</em><em> </em><em>C</em><em>o</em><em>m</em><em>p</em><em>u</em><em>t</em><em>e</em><em>r</em><em> </em><em>B</em><em>a</em><em>s</em><em>e</em><em>d</em><em> </em><em>T</em><em>r</em><em>a</em><em>i</em><em>n</em><em>i</em><em>n</em><em>g</em><em>(</em><em>C</em><em>B</em><em>T</em><em>)</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>W</em><em>e</em><em>b</em><em> </em><em>B</em><em>a</em><em>s</em><em>e</em><em>d</em><em> </em><em>T</em><em>r</em><em>a</em><em>i</em><em>n</em><em>i</em><em>n</em><em>g</em><em>(</em><em>W</em><em>B</em><em>T</em><em>)</em><em> </em><em>a</em><em>r</em><em>e</em><em> </em><em>a</em><em>i</em><em>d</em><em> </em><em>t</em><em>o</em><em> </em><em>t</em><em>e</em><em>a</em><em>c</em><em>h</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>s</em><em>t</em><em>u</em><em>d</em><em>e</em><em>n</em><em>t</em><em> </em><em>i</em><em>n</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>c</em><em>l</em><em>a</em><em>s</em><em>s</em><em>r</em><em>o</em><em>o</em><em>m</em><em>.</em>

<em>E</em><em>-</em><em>c</em><em>o</em><em>m</em><em>m</em><em>e</em><em>r</em><em>c</em><em>e</em><em> </em><em>i</em><em>s</em><em> </em><em>a</em><em> </em><em>f</em><em>i</em><em>n</em><em>a</em><em>n</em><em>c</em><em>i</em><em>a</em><em>l</em><em> </em><em>b</em><em>u</em><em>s</em><em>i</em><em>n</em><em>e</em><em>s</em><em>s</em><em> </em><em>t</em><em>r</em><em>a</em><em>n</em><em>s</em><em>a</em><em>c</em><em>t</em><em>i</em><em>o</em><em>n</em><em> </em><em>c</em><em>o</em><em>n</em><em>d</em><em>u</em><em>c</em><em>t</em><em>e</em><em>d</em><em> </em><em>e</em><em>l</em><em>e</em><em>c</em><em>t</em><em>r</em><em>o</em><em>n</em><em>i</em><em>c</em><em>a</em><em>l</em><em>l</em><em>y</em><em> </em><em>b</em><em>e</em><em>t</em><em>w</em><em>e</em><em>e</em><em>n</em><em> </em><em>b</em><em>u</em><em>s</em><em>i</em><em>n</em><em>e</em><em>s</em><em>s</em><em> </em><em>p</em><em>a</em><em>r</em><em>t</em><em>n</em><em>e</em><em>r</em><em>s</em><em> </em><em>o</em><em>v</em><em>e</em><em>r</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>i</em><em>n</em><em>t</em><em>e</em><em>r</em><em>n</em><em>e</em><em>t</em><em>.</em><em>B</em><em>u</em><em>s</em><em>i</em><em>n</em><em>e</em><em>s</em><em>s</em><em> </em><em>t</em><em>r</em><em>a</em><em>n</em><em>s</em><em>a</em><em>c</em><em>t</em><em>i</em><em>o</em><em>n</em><em>s</em><em> </em><em>c</em><em>a</em><em>n</em><em> </em><em>o</em><em>c</em><em>c</em><em>u</em><em>r</em><em> </em><em>v</em><em>e</em><em>r</em><em>y</em><em> </em><em>q</em><em>u</em><em>i</em><em>c</em><em>k</em><em>l</em><em>y</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>g</em><em>l</em><em>o</em><em>b</em><em>a</em><em>l</em><em>l</em><em>y</em><em>.</em><em>T</em><em>h</em><em>e</em><em> </em><em>p</em><em>e</em><em>o</em><em>p</em><em>l</em><em>e</em><em> </em><em>c</em><em>a</em><em>n</em><em> </em><em>b</em><em>u</em><em>y</em><em>,</em><em>s</em><em>e</em><em>l</em><em>l</em><em> </em><em>a</em><em>n</em><em>d</em><em> </em><em>e</em><em>x</em><em>c</em><em>h</em><em>a</em><em>n</em><em>g</em><em>e</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>p</em><em>r</em><em>o</em><em>d</em><em>u</em><em>c</em><em>t</em><em>s</em><em> </em><em>o</em><em>r</em><em> </em><em>s</em><em>e</em><em>r</em><em>v</em><em>i</em><em>c</em><em>e</em><em>s</em><em> </em><em>u</em><em>s</em><em>i</em><em>n</em><em>g</em><em> </em><em>i</em><em>n</em><em>t</em><em>e</em><em>r</em><em>n</em><em>e</em><em>t</em><em>.</em><em>T</em><em>o</em><em>d</em><em>a</em><em>y</em><em>s</em><em> </em><em>m</em><em>a</em><em>n</em><em>y</em><em> </em><em>c</em><em>o</em><em>m</em><em>p</em><em>u</em><em>t</em><em>e</em><em>r</em><em> </em><em>c</em><em>a</em><em>n</em><em> </em><em>a</em><em>l</em><em>s</em><em>o</em><em> </em><em>a</em><em>c</em><em>c</em><em>e</em><em>s</em><em>s</em><em> </em><em>t</em><em>h</em><em>e</em><em> </em><em>I</em><em>n</em><em>t</em><em>e</em><em>r</em><em>n</em><em>e</em><em>t</em><em> </em><em>t</em><em>h</em><em>r</em><em>o</em><em>u</em><em>g</em><em>h</em><em> </em><em>w</em><em>i</em><em>r</em><em>e</em><em>l</em><em>e</em><em>s</em><em>s</em><em> </em><em>t</em><em>e</em><em>c</em><em>h</em><em>n</em><em>o</em><em>l</em><em>o</em><em>g</em><em>i</em><em>e</em><em>s</em><em>.</em>

8 0
2 years ago
Which statement about broadcasting a slideshow online is true?
9966 [12]

Answer: PowerPoint has a free, built-in service for broadcasting online.

Explanation:

The statement that's true about the broadcast of a slideshow online is that PowerPoint has a free, built-in service for broadcasting online.

Option 1 is wrong as all transitions are not properly displayed to the audience when broadcasting online.

Option 2 is wrong as broadcasting as slideshow online is an option for most PowerPoint users.

Option 3 is wrong because when broadcasting online, third party desktop sharing software isn't necessarily an option and it isn't a must that it must be used.

Therefore, the correct option is 4.

4 0
3 years ago
Read 2 more answers
Other questions:
  • Pollution or waste that is generated from a business is called a
    6·2 answers
  • By issuing concert tickets on the blockchain, fans can verify transfer of ownership from one digital wallet to another, rather t
    14·1 answer
  • Maria found a cupcake recipe on a cooking blog. However, she would like to read comments and suggestions before she begins bakin
    6·2 answers
  • Rachel wants to post content from digital cameras on the web. Which online tool will help Rachel to post and edit content on a w
    5·1 answer
  • What did I do wrong? May you please correct it for me...I was also looking on how to delay when it prints. Like when it prints a
    9·1 answer
  • Assume that we have an application with a total of 500,000 instructions where 20% of them are the load/store instructions with a
    14·1 answer
  • You are system administrator with hundreds of host workstations to manage and maintain. You need to enable hosts on your network
    14·1 answer
  • The decimal number 3 is ___ in binary the 2s column plus the 1s column.
    11·1 answer
  • Which of the following is an example of phishing attack? csp
    8·1 answer
  • When would instant messaging be the least effective means of communication
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!