##### 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) = x^{3}/3-2x^{2}+3x+1 on an interval [0, 3.5]

2. Find a minimum of the function f(x, y) = x^{4}+y^{4 }- x^{2} y + x y^{2} 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)_{X}F(x)

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

x^{j+1 }= x^{j-}(+)λ_{j}?F(x^{j}),

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(x_{j}+1)<(>)F(x_{j}).

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}√(x_{i}-x∗)^{2}+(y_{i}-y∗)^{2}→min.

**Attachment:-** Assignment.rar