Create function m-file called mass that requires two vector

Assignment Help Programming Languages
Reference no: EM13332396

The future-value-of-money formula relates how much a current investment will be worth in the future, assuming a constant interest rate.

2053_assign1.png

where

FV is the future value
PV is the present value or investment

I is the interest rate expressed as a fractional amount per compounding period-i.e., 5% is expressed as .05 n is the number of compounding periods.

(a) Create a MATLAB® function called future_value with three inputs: the investment (present value), the interest rate expressed as a fraction, and the number of compounding periods.

(b) Use your function to determine the value of a $1000 investment in 10 years, assuming the interest rate is 0.5% per month, and the interest is compounded monthly.

Problem 6.5 (page 235)

By rearranging the preceding relationship between moles and mass, you can find the mass if you know the number of moles of a compound:

m= n*MW

(a) Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid function in your calculations.

(b) Test your function with the compounds listed in the previous problem, for values of n from 1 to 10.

 

Problem 6.8 (page 236)

 

419_assign2.png

The distance a freely falling object travels is

where
g = acceleration due to gravity,
t = time in seconds
x = distance traveled in meters.
If you have taken calculus, you know that we can find the velocity of the object by taking the derivative of the preceding equation. That is,

536_assign3.png

We can find the acceleration by taking the derivative again:

1802_assign4.png

Reference no: EM13332396

Questions Cloud

Difference between an ethical issue and an ethical dilemma : Explain the difference between an ethical issue and an ethical dilemma. Is it always easy to distinguish between the two?
What is the average angular speed of the screwdriver : A screw with 25 threads per centimeter is driven 1.49 cm into its fixture in 12.4 s with a cordless electric screwdriver. What is the average angular speed of the screwdriver
What are the two interlocking theories : What are the two interlocking theories that are proposed for the formation of the solar system? Give three examples of how the condensation theory explains features in our solar system. How did the temperature structure of the solar nebula determine ..
Determine the direction of the pucks acceleration : Two forces are acting on a 0.250-kg hockey puck as it slides along the ice. what will be the magnitude and direction of the puck\'s acceleration
Create function m-file called mass that requires two vector : Create a function M-file called mass that requires two vector inputs-the number of moles and the molecular weight-and returns the corresponding mass. Because you are providing vector input, it will be necessary to use the meshgrid functio..
What is the intent of regulatory compliance : What is the intent of regulatory compliance, and what is the role of IT in maintaining corporate compliance?
Evaluate rate of formation of the carbocation intermediate : In this reaction, we are actually measuring the rate of formation of the carbocation intermediate. It would be possible for the carbocation to proceed to a product other than the alcohol discussed in the Experimental writeup without changing out k..
Compute the position of the persons center of gravity : A person lies on a balance board as shown in the figure below. The person weights 80 kg, and the scaleunder the person's feetreads 30 kg. Compute the position of the person's center of gravity
Explain the importance of high-quality information : Explain the importance of high-quality information for political microtargeting?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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