Find a minimum of the function

Assignment Help Other Subject
Reference no: EM131188707

Part A-

1. To Do

We all have those days when there are a bajillion things to do, and we don't know how we're going to get it all done. Sonner than later we miss the tasks that we needed to do!

So for this assignment, you should create a ToDo list. It should at least be able to do the following things:

  • Add an item to the To-Do list
  • Delete an item from the To-Do list
  • Print the To-Do list
  • All the To-Do's should be written to a file so that you can load it later.

2. Find your weight on other Planets

Before we get into assignment question, lets understand the difference between Weight and Mass.

  • Mass is a measurement of the amount of matter something contains, while Weight is the measurement of the pull of gravity on an object.
  • Mass is measured by using a balance comparing a known amount of matter to an unknown amount of matter. Weight is measured on a scale.
  • The Mass of an object doesn't change when an object's location changes. Weight, on the otherhand does change with location.

Part B-

1. Find a minimum of the function f(x) = x3/3-2x2+3x+1 on an interval [0, 3.5]

2. Find a minimum of the function f(x, y) = x4+y4 - x2 y + x y2 numerically starting at the initial point x=1, y=0 (feel free to reuse the code from the lecture notebook). See how different choices of the initial point might affect the results (report any other point of local minima which the solution can return).

Optimization problem:

F(x)→min(max)

x∗=argmin(max)XF(x)

Common family of iterative optimization methods is known as "gradient descent":

xj+1 = xj-(+)λj?F(xj),

where ∇F(x) denotes a gradient vector of F in the point x, while λj are certain real positive numbers picked up with respect to F(xj+1)<(>)F(xj).

Optimization example.

Consider several points on the map and look for a such a centroid location that sum of distances from it to the given points is minimal:

i√(xi-x∗)2+(yi-y∗)2→min.

Attachment:- Assignment.rar

Reference no: EM131188707

Questions Cloud

Determine the magnitudes of the support reactions at a and c : The homogeneous 18-kg pulley is attached to the bar ABC with a pin at B. The mass of the bar is negligible. The cable running over the pulley carries a tension of 600 N. Determine the magnitudes of the support reactions at A and C.
Compare the italian renaissance and the northern renaissance : Comment on the Restoration controversy using da Vinci's "Last Supper" and Michelangelo's "Sistine Chapel Ceiling." After restoration, whose work is it?
Draw a conceptual data model for your database : Draw a conceptual data model (entity-relationship model diagram) for your database. There should be at least four entities with their relations. Clearly describe and explain all the symbols you use for your ER model diagram.
Calculate the magnitude of the electric field at ground : Calculate the magnitude of the electric field at the ground a distance of 5.0m from the wire.
Find a minimum of the function : Find a minimum of the function f(x) = x3/3-2x2+3x+1 on an interval [0, 3.5] Find a minimum of the function f(x, y) = x4+y4 - x2 y + x y2 numerically starting at the initial point x=1, y=0 (feel free to reuse the code from the lecture notebook)
Cobb-douglas production function : Show that if this is true (ie that both factors of production are 'rewarded' according to their marginal products) and we add together the total value of real income to all units of labour and the total value of real income to all units of capital..
Distinguish between demand-pull inflation and cost-push : Distinguish between demand-pull inflation and cost-push inflation. Which of the two types is most likely to be associated with a negative GDP gap? What is core inflation? Why is it calculated?
How you feel knowing that thousands of users simply copying : Violation of your copyright privileges, and how you feel knowing that thousands of users are simply copying and sharing your composition, for which they might have paid for otherwise.
Quantity after the technological improvement : An improvement in the technology of air travel has occurred which affects both classes equally. Draw a suitable diagram to illustrate and discuss the effect on the equilibrium price and quantity of business class and economy class tickets. From th..

Reviews

Write a Review

Other Subject Questions & Answers

  The molar enthalpy of vaporization of water

The molar enthalpy of vaporization of water at its normal boiling point of 373.15 K and 1 atm is 40.65 kJ/mol. The density of liquid water is 958.4 g/L and the density of water vapor is 0.6010 g/L . a) Use Clapeyron equation to determine the value of..

  Issues raised during this cross-cultural interchange

What problems and issues resulted from the cultural differences between key groups and from the hospital''s point of view, what cultural traits made Lu Vang''s treatment more complex?

  Minoans went barefoot inside of their houses comes from

The conclusion that the Minoans went barefoot inside of their houses comes from

  Blood vessle from the right ventricle to the lungs

If the pressure in the right ventricle is 10 mm Hg and the pressure in the blood vessle from the right ventricle to the lungs is 15 mm Hg, is the one way valve between these two open or closed? Does blood flow from ventricle to vessel under this cond..

  Major methods of sociological research

Discuss how each of the major methods of sociological research - experiment, survey, participant observation, and secondary research - are suitable for helping us to answer different types of questions and to study different situations.

  1050- to 1200-word paper in which you analyze the theory of

1050- to 1200-word paper in which you examine the theory of operant conditioning. address the following itemsbull

  What problems might occur with full implementation of rfid

What problems might occur with the full implementation of RFID technology in retail industries? Specifically consider the amount of data that might be collected.

  Lateralized function of the left hemisphere

Verbal behavior is said to be a lateralized function of the left hemisphere in that:

  Identify areas of this floor plan that may present issues

1.explain the major features of this floor plan. for example are there large open spaces large walls cubes or

  Obituaries in remembrance of president abraham lincoln

Write two obituaries in remembrance of President Abraham Lincoln. To complete this assignment, you are going to assume the role of an editor for a fictional newspaper on two distinctly different dates.

  Perfect a security interest and give real-world examples

What are the various methods to Perfect a Security Interest and give real-world examples

  Statement of cash flows

You have a company's balance sheet, its income statement, and its statement of cash flows. Which would you refer to if you wanted to know if a company made or lost money last year?

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