Generate x sinx for x values ranging

Assignment Help Python Programming
Reference no: EM132368872

Question

The second exercise produces x,y values using Python math functions. The results of these function calls will be used as input to another program of your choice for plotting the results. The plots can be made using Excel, Octave, or any other online or other graphing tool you have available.

The Math functions and values range of x-values are described below:

a. Generate x, sin(x) for x values ranging from -2PI -> 2PI with an increment of PI/64

b. Generate x, cos(x) for x values ranging from -2PI -> 2PI with an increment of PI/64

c. Generate x, sqrt(x) for x values ranging from 0 -> 200 with an increment of 0.5

d. Generate x, log10(x) for x values ranging from 0 -> 200 with an increment of 0.5

Since we aren't using Python File I/O yet, you will need to use standard I/O and perhaps even copy and paste the output of the Python application to your graphing tool. Be sure both x and f(x) values are provided as input to the tool.

For graphing, provide the following graphs:

a. One graph with both x, sin(x) and x, cos(x) displayed. Be sure to include, a title, legends and x and y axis labels.

b. One graph with both x, sqrt(x) and x, log10(x) displayed. Be sure to include a title, legends and x and y axis labels.

Hints:

1. Use the Python Math library

2. print() statements will allow you to display the, x, f(x) results

3. Create and use functions as often as possible

4. Use comments to document your code.

Reference no: EM132368872

Questions Cloud

What are the economic affects of large localized events : Economic Shock - Research the economic affects of natural disasters. You can research the economic affects of large localized events or the more general.
Write function popular graph list n that returns a list : Write function popular graph list, n that returns a list of people who have at least n friends. Each person is identified by the number of their vertex.
Innovation at international foods case study : Read the Innovation at International Foods Case Study
What is your analysis of the situation at adhikari : Based on the data provided in the case, what's your analysis of the situation at Adhikari? Is the organization in trouble? If so, how big is the problem?
Generate x sinx for x values ranging : You will need to use standard I/O and perhaps even copy and paste the output of the Python application to your graphing tool.
Do you agree with the statement related to globalization : Given the rapid advancements in technology in developed countries and fast pace of globalization, it is not possible to bridge the global digital divide.
Describing several different relevant economic issues : For our remaining Residency assignments, we will be researching, evaluating, and summarizing several different relevant economic issues.
Digital forensics tools and tech : Do a bit of research on-line. Find a criminal case that involved Digital Forensics.
Critical business functions and recovery point objectives : The disaster recovery plan and who is responsible at your place of employment. Consider the critical business functions and your recovery point objectives

Reviews

Write a Review

Python Programming Questions & Answers

  Write an expression that evaluates to a new list containing

Write an expression that evaluates to a new list containing all the elements from the one at index k through the one at index.

  Build your own quiz use the Python Programming Language

Use the Python Programming Language to build your own quiz. You will use a fill-in-the blank style to create a quiz that can even be used as a study tool

  Write program that read a text file and prints only odd line

Write a program that reads a text file and prints out only odd lines to the screen. Thus, lines 1, 3, 5,... only printed. Update your odd lines program (Q1) to write odd lines to the screen and write then lines to another file.

  Define a function named future date that first take a string

Define a function named future_date that first takes a string as an argument ; its second argument is the number of days to "advance" the date into the future.

  Create a program that calculates the estimated hours

Create a program that calculates the estimated hours and minutes for a trip. This should include an estimated date/time of departure and an estimated.

  Write a function that output the position of minimum element

Position of minimum elemement. Write a function that outputs the position of the minimum element in an array of integers.

  Create test cases each consisting of a list of non-empty

Create three test cases, each consisting of a list of non-empty strings and a string of upper and/or lower case letters, for your function in Problem 1a.

  Make your own test cases and think about what the edge cases

The second function you will write should be called 'countLetter'. Your function should take two (2) arguments. The first will be a string.

  Write a program that reads a list directly from the user

Write a program that reads a list directly from the user, then removes duplicate top-level elements in it and prints out the resulting list.

  Prompt the user to enter the amount of a dinner bill

A common issue with dinning out is calculating the correct tip amount. Need a Python program that will Prompt the user to enter the amount of a dinner bill.

  The computer game function collision

The computer game function collision () checks whether two circular objects collide; it returns True if they do and False otherwise. Each circular object will be given by it's radius and the (x,y) coordinates of it's center.

  Relationship between the features and the output variable

AIT91001 - Computational Intelligence and Machine Learning - apply the machine learning process to model the relationship between features and output variable

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd