The value of f depends on two independent variables x and y as defined below:
f(x,y)=x2+y2−x+3cos(x)sin(y)
Function f has a minimum in the neighborhood of the origin (i.e. [0 0]). Find x and y which minimize f.
Note: You are not allowed to use MATLAB built-in functions for optimization. Follow the logic of the derivative test:
The minimum of f occurs where:
∂f∂x=0∂f∂y=0
In: Mechanical Engineering
In matlab.write a program that converts a numerical date given by the user into a month, day, and year. Specifically, the user should input a sequence of eight numbers 05141956.
the program should print out the same date in complete format. In this example it would print "The date is May 14th, 1956". Notice the "th" addition after the day. This changes depending on the number. Make sure this feature is included. MATLAB has built-in date conversion functions. You cannot use them in this exercise.
In: Mechanical Engineering
Indicate whether each of the following was counted in the United
States gross domestic product for the year 1998. Explain each of
your answers.
a) The commission earned by a Realtor who sold a house in 1998. The
house was originally built in 1955.
b) The value of an automobile produced in 1998, but sold on January
1st, 1999.
c) The $1000 that Kevin earned from a stock that he bought and sold
in 1998.
d) The value of blenders produced in 1998 entirely in Germany by a
company that is owned by American citizens.
In: Economics
If you a buy a house for $150,000, live in it for more than two years, and sell it for $350,000 you pay NO TAX on this $200,000 realized gain. By contrast, if you invest $150,000 in a stock and sell the stock for $350,00 after more than one year, you must pay long term capital gains taxes of 15% on the $200,000 realized net long term capital gain. Why is this different treatment, which favors real estate over stock investments, built into the tax code?
In: Accounting
All the Greek tragedies center on man's failure because of "hubris." Many eyes are watching billionaire Elon Musk's progress in pushing out the Tesla Model 3. Do you think Elon used the AFN equation when he built the new battery factory and adapted an old Toyota facility to build the Model 3? Did Tesla grow too fast? Do you think Elon will make it? How might he have done it better?
In: Finance
4. Imagine that you are asked to choose between two businesses (electric companies) that will supply electricity to your home. One of these electric companies burns coal in a facility built in 1963. It has not been retrofitted with pollution-control equipment, but it offers electricity at a relatively low price. The other firm has been retrofitted with pollution-control equipment and generates a large percentage of its electricity from dams, windmills, and solar panels but its price for electricity is almost 50% higher.
In: Economics
Write a function in any functional programming language that will reverse a general list. For example, if an input is (A (B C (D E)) F), output is (F ((E D) C B) A). Please note that any built-in/pre-defined function, e.g., reverse, cannot be used in your answer.
Please DO NOT hard-code any input values, output values in your code.
Please submit a screenshot of where your code got compiled, executed, showing the execution result
In: Computer Science
Imagine the Raiders football team would like to move to Sacramento, CA. While we can't know the overall effect on jobs, we can make assumptions based on data.
a) Explain three reasons why building a stadium for the Raiders could results in a net benefit or cost for Sacramento. At least one reason should be a positive/pro, one should be negative/against.
b) If the stadium is built, what can we expect to happen to the local labor market? Explain and demonstrate with a graph.
In: Economics
Imagine that your Marketing Strategy is going to revolve around Digital Marketing. Provide a Digital Marketing Strategy for a High-tech backpack (approximately 1000 words). The following are the features of a high-tech backpack. A solar-powered battery pack. Bluetooth speakers with 96 hours of playing time. A built-in phone charger. 5 USB ports. A tracking device in case it ever gets lost or stolen. A price tag of $250
Please do not copy-paste the content and give an appropriate answer.
In: Economics
How do I set up a basic DC generator circuit?
I have a tiny generator that I need to use to harvest energy and power an LED. The first way I set up the circuit didn't work. I'm thinking it should be done like this:
red cable from generator -> resistor -> long end of LED -> short end of LED -> black wire to generator
Note that the prof calls it a motor. I'm not sure if this would affect how the circuit should be built?
In: Electrical Engineering