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...
-
Find the average of the function f (t) over the given interval. f(t) = cost + sin t, -T t 0
-
Discuss the objectives and classification of criminal offenses.
-
During the current year, Irene, a married individual who files a joint return, reports the following items of income and loss: Salary .. $130,000 Activity X (passive) . 10,000 Activity Y (rental real...
-
If a supplier of ingredients for a restaurant shows up late for a delivery and the kitchen manager is busy, the delivery driver can just drop off the food ordered because they are a regular supplier....
-
1. Choose one job, such as front desk clerk. Based on any information you have (including job descriptions you may have created in other chapters), write a list of duties, competencies, and...
-
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...
-
Compute the 2016 standard deduction for the following taxpayers. a. Margie is 15 and claimed as a dependent by her parents. She has $800 in dividend income and $1,400 in wages from a part-time job....
-
During the current year, merchandise is sold for $136,900 cash and $492,400 on account. The cost of the goods sold is $478,300. What is the amount of the gross profit? X Feedback Check My Work Cash...
-
The business activities of Beaver Company during its first month of operations are as follows: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Becky and Bucky Beaver start a company that they incorporate as Beaver...
-
A prospect says that she is a little concerned about the cost of a product so you ask her, "Are you saying that price is the most important thing you are interested in?" This is an example of: a...
-
One of the general Medicaid income and asset guidelines states that only a portion of Blank______ income from Social Security benefits, Supplemental Security Income (SSI), and veterans' benefits and...
-
Home Furnishings reports inventory using the lower of cost and net realizable value (NRV). Below is information related to its year-end inventory. Inventory Furniture Quantity Unit Cost Unit NRV...
-
Heron Company purchases commercial realty on November 13, 1996, for $650,000. Straight-line depreciation of $287,492 is claimed before the property is sold on February 22, 2014, for $850,000. What...
-
In what ways does a well-designed enterprise search software vary from popular search engines (e.g., Bing, DuckDuckGo, and Google)?
-
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...
-
Solve the triangle shown to the right. Round the lengths of sides to the nearest tenth and angles to the nearest degree. 96 b=5 a=7 B A C C9.0 (Do not round until the final answer. Then round to the...
-
Hello, need help with making the program MealData.txt Avocado Egg Rolls 6.00 Parmesan-crusted Chicken 19.75 Strawberry Shortcake Pizookie 8.25 BBQ Tri-Tip Sliders 12.95 Spicy Peanut Chicken with Soba...
-
Assume you have been appointed to develop ethnic and multicultural marketing for a small chain of household appliance stores in large metropolitan area. There are several large concentrations of...
Study smarter with the SolutionInn App