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

  Create a very simple grocery list script

Introduction - Your task for this project is to create a very simple grocery list script. Create an empty dictionary with the variable name grocery_item

  Create a program that converts roman numbers into numbers

Create a program that converts roman numbers into numbers (1,2,3 etc) but You have trouble doing it the question says to use the following.

  Prepare an original 2d game code in cocos2d python

Project may be completed using Linux, Windows, or OS X. If you use OS X, you may use Spritekit instead of Cocos2D.

  Prompt the user for the names of two text files

Write a script named copyfile.py. this script should prompt the user for the names of two text files. the contents of the first file.

  Calculate the sum of the first n odd numbers

A program that ask the user for a username and password and read the names and password from a text file, if the username and password match.

  Data analytics approach to solve a set of business problems

Undertake a data analytics approach to solve a set of business problems that require the use of appropriately selected data processing and mining approaches

  Examine both function implementations

CISC 160 Lab Assignment - Examine both function implementations. Which of these functions is more efficient and why

  Create a python program to decide a small election

Create a Python program to decide a small election for the mythical country of Nerdvana. The method being used to decide that election was.

  Construct a function named intersperse that will prompt user

Construct a function named intersperse that will prompt the user to enter two sentences. Then it will print a combined sentence, consisting of alternating words

  Implement the main part of the program to interact

Suppose you are asked to design a software tool that helps an elementary school student learn arithmetic operations. The software allows the student.

  Write a python program that reads a dumbbasic program

You should write a Python program that reads a DUMBBASIC program from standard input1, and prints the results of executing that program to standard output.

  Write a program to check the validity of password input

A website requires the users to input username and password to register. Write a program to check the validity of password input by users.

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