Loss of precision when numbers of very different

Assignment Help Basic Computer Science
Reference no: EM131716563

1) Plot the function f(x) = log(1+x)/x close to zero.

Here's the code I used.

------------------------------------------------

end = 1
x = linspace(-end, end)
y = where(x==0, 1.0, log(1+x)/x)
plot(x, y)

-------------------------------------------------

How to describe the main features of this graph and how those features relate to the loss of precision when numbers of very different magnitudes are added or subtracted?

2) How to plot the Taylor series approximation along with the graph from #1?

Taylor's Theorem : f(x) = f(0) + f'(0)*x + (f"(0)/2!)*x^2 + (f"'(0)/3!)*x^3 + ... + (f^n(0)/n!)*x^n + (f^(n+1)(z) / (n+1)!)*x^(n+1)

3) How to find how big abs(x) can be using this approximation while maintaining a relative error of less than 1 part in 10^16?

Reference no: EM131716563

Questions Cloud

Discuss conversations with your teenagers about sex : Consider the conversations that you would have with your teenagers about sex, if you were to have children.
How did technology align-converge or fail company strategy : How did the technology align, converge or fail the company strategy?
Sescribe patterns of interaction among racial and ethnic : Sescribe patterns of interaction among racial and ethnic categories in a society in terms of three models: Pluralism, assimilation, and segregation.
Finding the highest value in an array : Write in pseudocode format showing the general logic for finding the highest value in an array.
Loss of precision when numbers of very different : How to describe the main features of this graph and how those features relate to the loss of precision when numbers of very different magnitudes are added.
The licensing of intellectual property : The three forms of international business, or methods of entering a foreign market, are trade, the licensing of intellectual property,
How might the proposed action impact stakeholders : Who are the stakeholders, and how might the proposed action impact them? Can Rayvon's new process be patented?
Identify a specific type of kinship system : Identify a specific type of kinship system that is different from your own and then imagine growing up in that other kinship system.
Describe issue with social darwinism : extreme economic inequality which ironically does not fit into the democratic mold and neither does racism. Describe this issue with Social Darwinism

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What is a three-tier architecture

List the advantages of a client/server architecture as compared to a file server.

  Problem regarding the polynomial-time algorithm

Give a polynomial-time algorithm that ?nds rV/21 vertices that collectively cover at least three-fourths (3/4) of the edges in an arbitrary undirected graph.

  Create a cost model for higher-level operations in c++

Exercise 7-7 involved writing a program to measure the cost of various operations in C++. Use the ideas of this section to create another version of the program.

  Advantages and disadvantages of biometrics

1. Not all security experts agree about the value of biometrics. What are the advantages and disadvantages of biometrics? 2. What concerns to privacy advocates have about biometrics? Do you agree or disagree with the concerns? Please explain.

  Abbreviations of the first 10 usa states

Create list named states1 that holds the two-letter abbreviations of the first 10 USA states, in alphabetical order.

  How frequently should your personal computer be scanned

Name and briefly describe three different types of malware that could infect a personal computer running the Windows operating system.

  Determine the minimum coefficient of static friction

Links AC and BC have negligible weight and are connected together at C by a pin.

  Hypothetical business engaged in e-business

Establish a target audience and scope for your presentation. Select a real or hypothetical business engaged in e-business and outline its central offerings and/or services.

  Describe rapid adoption of software as a service

The popularity and rapid adoption of Software as a Service (SaaS), Platform as a Service (PaaS), and Infrastructure as a Service (IaaS) by a number of organizations has impacted internal IT / IS departments.

  What method would you use to look up a word in a dictionary

Write a program to reverse the direction of a given singly-linked list. In other words, after the reversal all pointers should now point backwards. Your algorithm should take linear time.

  Can you determine why these functions are being called

Can you determine why these functions are being called?

  How does viewing this material inform

How does viewing this material inform

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