The java.lang.Math class provides a static method log(x), which returns the logarithm of x with a base
Question:
The java.lang.Math class provides a static method log(x), which returns the logarithm of x with a base that is approximately 2.718282..7This base is written e, and the logarithms with this base are called natural logarithms or Napierian logarithms, after the Scottish mathematician John Napier (1550 –1617) who invented these logarithms. The number e may seem like a strange choice for the base of a logarithm, but the choice is motivated by the fact that natural logarithms are easy to approximate as the sum of a series. Anyway, in this project, you are to write a method:
double log10(double x)
The method returns the base 10 logarithm of x. Make use of the java.lang.Math.log method and the formulas in Section 10.4. You can also use the fact that log10 e is about 0.4342944819032.
By the way, Napier also invented a calculator called “Napier’s bones.” The device performed multiplication and division through a series of connected rods with tables marked on them.
Step by Step Answer:
To calculate the base 10 logarithm of x you can use t...View the full answer
Students also viewed these Computer science questions
-
This case study on project evaluation is applicable for beginning courses in corporate finance or finance strategy. Two alternative investment options are available to evaluate. Challenges are...
-
BACKGROUND You are an information analyst working for NEE. The company president has asked you to prepare a Quantitative analysis of financial, sales, and operations data to help determine which...
-
The Hampshire Company manufactures umbrellas that sell for $12.50 each. In 2014, the company made and sold 60,000 umbrellas. The company had fixed manufacturing costs of $216,000. It also had fixed...
-
Kyrsten Haas expects an S corporation investment to generate a profit of $200,000. Her share of the S corporation is 15%. What is Kyrstens income tax if no cash is distributed? Kyrsten's marginal tax...
-
Refer to the labour force data in Data Set 14 in Appendix B, using the two columns for Male and Female Newfoundlanders. Compare the sizes of the occupational groups for each of the two genders by...
-
Youareontheboardofdirectorsofanautomotivecompany.Your company isat the forefront oftheindustry, and hasjustdevelopedseveral technologicaladvances,whichessentiallyperfecttheself-drivingcar.As...
-
Quarterly single-family housing starts. Refer to the quarterly housing start series, Exercise 14.8 (p. 14-10). Suppose you want to forecast the number of new housing starts in 2019 using data for...
-
Suppose the population of Area Y is relatively young while that of Area O is relatively old, but everything else about the two areas is equal. a. Would interest rates likely be the same or different...
-
During the current year, merchandise is sold for $8,920,000. The cost of the goods sold is $6,065,600. This information has been collected in the Microsoft Excel Online file. Open the spreadsheet,...
-
Reconsider the system defect situation described in Exercise 26 (Section 2.2). In Exercise 26 A certain system can experience three different types of defects. Let Ai (i = 1,2,3) denote the event...
-
Use a B-tree to implement the Set class from Figure 10.4. Be sure to write and test small pieces. FIGURE 10.4 The Set of Integers Class IntBalancedSet * public class IntBalancedSet from the package...
-
Use the material from Section 10.3 to reimplement the animal-guessing program from Figure 9.8 as a JApplet. Youll need to research additional details of the Java classes. FIGURE 9.8 The...
-
What are the totals of the debit and credit columns from the sales journal for May? Debit amount: Credit amount:
-
Sketch the curves with equations given in question 3 parts a, b, c and d, labelling any stationary points with their coordinates. Data from Question 3 Find the coordinates of the points where the...
-
Trace the polygon and point P on paper. Then draw a rotation of the polygon the given number of degrees about P. 130 Q R T P S
-
Name any devices other than the three mentioned in Section 31. 1-battery, solar cell, and electric generator that can act as a power source in an electric circuit. Data from Section 31. 1...
-
A thick resistor and a thin resistor of the same length and material are connected in series, as shown in Figure 31. 29. Which resistor has \((a)\) the greater potential difference across it and...
-
Note that the amount of 25k that has already been spent on developing the website is not included in this analysis, as it represents a sunk cost. The decision rule for ARR is that a project should be...
-
Simplify. a 4 a 10
-
When a company has a contract involving multiple performance obligations, how must the company recognize revenue?
-
Problems in this exercise assume that logic blocks needed to implement a processors datapath have the following latencies: 1. If the only thing we need to do in a processor is fetch consecutive...
-
For the problems in this exercise, assume that there are no pipeline stalls and that the breakdown of executed instructions is as follows: 1. In what fraction of all cycles is the data memory used?...
-
When silicon chips are fabricated, defects in materials (e.g., silicon) and manufacturing errors can result in defective circuits. A very common defect is for one wire to affect the signal in...
-
You are evaluating a new project for the firm you work for, a publicly listed firm. The firm typically finances new projects using the same mix of financing as in its capital structure, but this...
-
state, "The subscription price during a rights offering is normally r; lower ; lower r; higher er; higher than the rights-on price and
-
Arnold inc. is considering a proposal to manufacture high end protein bars used as food supplements by body builders. The project requires an upfront investment into equipment of $1.4 million. This...
Study smarter with the SolutionInn App