Homework 1, Computing Sine and Cosine with Infinite Series due via D2L dropbox by Thursday, September 13, at 11:55 pm 10 points In…

StudyAcer homework Experts at a Glance, Save Time and Excel

Writer avatar
Dr.JamesPhD

Rating: 4.9/5    Reviews 373

Success rate 98%

Completed projects: 592

Hello, I am a full-time professional freelance writer with over 6 years experience in academic writing. I have a PhD in Strategic Management and have done several projects in business management, marketing and other subjects. This experience has helped me reinforce my ability to work in various fields and handle simple and complex topics. I am a...

Writer avatar
Dr.SUCCESS

Rating: 5/5    Reviews 1326

Success rate 99%

Completed projects: 1976

Hello :) My name is Dr.Success, I've started on my path as a professional writer mostly by writing essays. However, in the years since then, I've written various other academic papers, from research works to book reviews. From Sydney to New York, there are hundreds of students all over the world that are happy with the services I've provided the...

Writer avatar
MarvellousTutor

Rating: 5/5    Reviews 371

Success rate 97%

Completed projects: 1173

Hi there! Im MarvellousTutor, your perfect author with huge writing experience in English, Art and Business. What? Need assignment on another subject? No worries: I can deal with anything! If you're dreaming of the reliable, responsible and always-on-time writer, here I am! I manage my time greatly, thus, your deadline is highly important for me...

Writer avatar
Prof_Stephen

Rating: 4.7/5    Reviews 891

Success rate 97%

Completed projects: 1136

Hello there! My name is Prof Stephen. I have been a full-time freelance researcher and writer for a period of over 6 years. I have successfully completed over 1000 projects and assignments. I have had a good professional relationship with my clients who always come back for more quality papers since I highly value quality, professionalism, and i...

Writer avatar
Prof.TzKelly

Rating: 4.9/5    Reviews 244

Success rate 100%

Completed projects: 479

I'm ProfTzKelly, talented wordsmith, grammar afficionado, and writing machine. I'm written everything from outlines to screenplays and book reviews to advanced research papers. All you have to do to be well on your way to a great grade is chat with me! I'm experienced in all major styles, including APA, MLA, Chicago, Harvard, and Vancouver. You ...

Writer avatar
ProfAcer

Rating: 5/5    Reviews 465

Success rate 96%

Completed projects: 852

Hey! My name is ProfAcer, and my goal is to help you to get through a tough period of your life. I've been a student, and I know that the amount of work some professors expect you to do can be unfair and overwhelming. And that's without even accounting for the job you probably have an active social life each student should have. There is no sham...

Writer avatar
ProfessorEunice

Rating: 4.9/5    Reviews 412

Success rate 96%

Completed projects: 719

In academic writing, quality, originality, and deadlines are vital, and these are my primary offerings to all my clients. I have two years of experience as a full-time academic writer, with over 300 finance, economics, marketing, business, and general papers written from scratch. Since joining this site, I have also tackled sociology, healthcare...

Writer avatar
ProfWriters

Rating: 5/5    Reviews 482

Success rate 96%

Completed projects: 783

Hello, I am Prof Writers, I am a bold, accurate, and experienced tutor committed to providing clients with high quality, original, and timely work. As a writer, proficiency in several disciplines in academic writing is necessary, and that is why I prioritize on delivering quality and appropriate work. Be assured that I will always follow the lai...

Writer avatar
Think_Tank

Rating: 4.8/5    Reviews 319

Success rate 97%

Completed projects: 584

Hello! People call me ThinkTank, and I've been earning money as an academic writer for years. With a lot of works under my belt, you can bet that I've dealt with dozens of various topics and different forms of papers, including essays, research papers, and even dissertations. I like the challenge that comes with this job. I first fell in love wi...

Homework 1, Computing Sine and Cosine with Infinite Series due via D2L dropbox by Thursday, September 13, at 11:55 pm 10 points In…

Do Not Copy. Order Custom, Original Paper.
Homework 1, Computing Sine and Cosine with Infinite Series due via D2L dropbox by Thursday, September 13, at 11:55 pm 10 points In homework 1, we’re going to compute an infinite series (although we won’t go to infinity). Consider the infinite series for sin(x), with x in radians. (The interval 0 to 2Ï€ radians is the same as 0 to 360 degrees.) ( ) We can use a loop to compute this to varying degrees of accuracy. You’ll ask the user for the number of terms to handle. I have posted a version of this as hw1-unsolved.txt. You will need to copy it and rename your copy as [removed].[removed].py. (Sorry, D2L won’t let me post .py files.) This file won’t run for you right off the bat, because the code for computing the terms is missing. But everything else is there. You must add the comments at the top for your name, lecture, and recitation, and you must add unique, original comments to the code that computes the terms to explain your logic. Comments in Python begin with a #. You are free to use either the factorial I showed in class, or math.factorial(x). Part 1 (7 points): write a Python function called infinite_sin_1. Here’s the first line: def infinite_sin_1(x): Tasks: First, you will need a variable for the total of these terms. Start that at 0. Second, you will ask the user how many terms to use. The command for this is a little ugly: iterations = int(raw_input(‘Enter the number of cosine terms to add up: ‘)) Here, the raw_input() command prompts the user for a string. But we need that string to become an integer. So we use the int() command to change the string we get back from raw_input into a number. Third, you will want to write a for-loop that uses the range command to make a list of numbers, [0, 1, 2, 3, 4]. The for-loop also sets a counter variable called i to each of these numbers in turn. (Take a look at the python examples from class to remember how for-loops work.) Fourth, inside this for-loop, you’ll figure out what the next term is and add it to the total. Getting the right exponent/factorial numbers. When i=0, the exponent and factorial for that term is 1. When i=1, the exponent and factorial for that term is 3. When i=2, the exponent and factorial for that term is 5. Use i to calculate the exponent and factorial for each term.Getting the right sign for each term. This series has alternating positive and negative terms. When i=0, 2, or any even number, the term is positive. When i=1, 3, or any odd number, the term is negative. Use i to figure this out. Adding the term to the total. When you are getting the right terms, add each one to the total inside the loop. At the end of the function, the last line should return the total. (Else, you will have no answer!) Fifth, use Python’s math.sin(x) to check your answer. You should be surprisingly close to the right number after adding a few terms. Part 2 (3 points). Write a similar method for infinite_cos_1(x). You will want to Google around for the infinite series for cosine, which should look similar to the one you know for sine. This should require only small changes inside the for-loop. When I run this code and it works, I see output like this. Enter the number of sine terms to add up: 3 Enter the number of cosine terms to add up: 6 real sine: 0.8660254037844385965883021 my sine 1: 0.8662952837868347355509968 my sine is accurate to: 0.0002698800023961389626947 real cosine: 0.5000000000000001110223025 my cosine 1: 0.4999999963909432243447384 my cosine is accurate to: 0.0000000036090568866775641 Extra credit (1 point): if you have this all working and you are bored, send me email about how bored you are, and we’ll discuss a more efficient way to compute these series.

Need help with writing Homework 1, Computing Sine and Cosine with Infinite Series due via D2L dropbox by Thursday, September 13, at 11:55 pm 10 points In…?

Get help


  • StudyAcer

    4.7/5
  • Trustpilot

    4.6/5
  • Sitejabber

    4.6/5

Please fill in the Order, to get Instant Homework Help


Attach files for the writers' reference