Question

The following is an equation in physics (Newton's Law of Gravitation), in which G is a...

The following is an equation in physics (Newton's Law of Gravitation), in which G is a constant equal to 6.673e-11, and m1, m2, and r are all vectors of size n by 1 .  

How can this be calculated in matlab? and what is the array type of variable F ?

a.

F = G*m1.*m2./r^2;

F will be a scalar value.

b.

F = G*(m1.*m2)./r*r;

F will be a row array.

c.

F = G*m1.*m2./r.^2;

F will be a square matrix.

d.

F = G*m1.*m2./r.^2;

F will be a column vector.

e.

F = G*(m1.*m2) /r.*r;

F will be a scalar value.

Homework Answers

Answer #1

Answer : Option(d) (F will be a column vector)

Explanation :

Given that m1,m2 and r are vectors of size n by 1 means m1,m2,r are column vectors.And G is a constant.So this will be calculated in matlab as follow.
G * m1 means multipling each element in m1 vector with G and there is .* operator and ./ operator in between m1,m2 and m2,r which means these operation are performed element by element.Example if 1,2,3 are elements in one vector and 4,5,6 are elements of another matrix then .* will multiply element by element(1*4,2*5,3*6) which results same vector size.So after performingn .* and ./ the result is still column matrix.And r^2 is just like G*m1 ,powers each elements by 2.So Finally the result F will be a column matrix.

*********Comment me for any Queries and Rate me up************

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Newton's Law of Gravitation states that two bodies with masses M M and N N attract...
Newton's Law of Gravitation states that two bodies with masses M M and N N attract each other with a force F=GMNr2, F = G M N r 2 , where r r is the distance between the bodies and G G is the gravitational constant. Use Newton's Law of Gravitation to compute the work (in J) required to launch a 1000-kg satellite vertically to an orbit 1000 km high. You may assume that Earth's mass is 5.98×1024kg 5.98 ×...
All these to be done in MATLAB: 1.1)Define a column vector, called “b” in MATLAB that...
All these to be done in MATLAB: 1.1)Define a column vector, called “b” in MATLAB that stored floating point numbers between 0.6 to 2.5 in increment of 0.2. 1.2)What is the size of vector b? How is the size of ‘b’ stored? Define number of rows of ‘b’ in variable ’row’ and number of columns of “b” in variable “col”. 1.3)Define matrix “A” as a 10 by 10 matrix of all “1”s. 1.4)Update matrix “A” as following: set all the...
Q. Newton's second law is summarized in the equation F=ma. Which of the following is true...
Q. Newton's second law is summarized in the equation F=ma. Which of the following is true regarding this equation? A. To use this equation, you need to add all the forces together, accounting the different directions, before knowing what to put for F. B. It's impossible to get any information from this equation until you know, ahead of time, exact values for F, m, and a. C. To use this equation, you need to add all the forces together numerically,...
(1 point) Newton's Law of Cooling states that the rate of cooling of an object is...
(1 point) Newton's Law of Cooling states that the rate of cooling of an object is proportional to the temperature difference between the object and its surroundings. Suppose t is time, T is the temperature of the object, and Ts is the surrounding temperature. The following differential equation describes Newton's Law dT/dt=k(T−Ts), where k is a constant. Suppose that we consider a 95∘C cup of coffee in a 25∘C room. Suppose it is known that the coffee cools at a...
When plotted in the complex plane for , the function f () = cos() + j0.1...
When plotted in the complex plane for , the function f () = cos() + j0.1 sin(2) results in a so-called Lissajous figure that resembles a two-bladed propeller. a. In MATLAB, create two row vectors fr and fi corresponding to the real and imaginary portions of f (), respectively, over a suitable number N samples of . Plot the real portion against the imaginary portion and verify the figure resembles a propeller. b. Let complex constant w = x +...
4. Electrostatics Coulomb’s law, or Coulomb’s inverse-square law, is a law of physics that describes force...
4. Electrostatics Coulomb’s law, or Coulomb’s inverse-square law, is a law of physics that describes force interactions between static electrically charged particles. The law is: F=kq1q2r2whereq1andq2represent two charges separated by a distance r and k is a constant approximately equal to 9×109Nm2C−2. (a) Find the work required to bring together a 0.8nCnegative charge and a 0.6nCnegative charge from a distance of 200 mm (0.2 m) to a distance of 100 mm (0.1 m).Note:1nC= 10−9CwhereCstands for coulombs and nC stands for...
7. Answer the following questions true or false and provide an explanation. • If you think...
7. Answer the following questions true or false and provide an explanation. • If you think the statement is true, refer to a definition or theorem. • If false, give a counter-example to show that the statement is not true for all cases. (a) Let A be a 3 × 4 matrix. If A has a pivot on every row then the equation Ax = b has a unique solution for all b in R^3 . (b) If the augmented...
Answer all of the questions true or false: 1. a) If one row in an echelon...
Answer all of the questions true or false: 1. a) If one row in an echelon form for an augmented matrix is [0 0 5 0 0] b) A vector b is a linear combination of the columns of a matrix A if and only if the equation Ax=b has at least one solution. c) The solution set of b is the set of all vectors of the form u = + p + vh where vh is any solution...
The following problems consider the scalar form of Coulomb's law, which describes the electrostatic force between...
The following problems consider the scalar form of Coulomb's law, which describes the electrostatic force between two point charges, such as electrons. It is given by the equation F(r)=ke|q1q2|r2,F(r)=ke|q1q2|r2, where keke is Coulomb's constant, qiqi are the magnitudes of the charges of the two particles, and rr is the distance between the two particles. (a) To simplify the calculation of a model with many interacting particles, after some threshold value r=R,r=R, we approximate ff as zero. Explain the physical reasoning...
Of the following pairs of equal and opposite forces, which are Newton's third-law interaction partners? (1)...
Of the following pairs of equal and opposite forces, which are Newton's third-law interaction partners? (1) The weight of a book resting on a table, and the normal force pushing up on the book. (2) the buoyant force on a metal cylinder hanging in a fluid, and the contact force the cylinder exertsthe fluid. (3) The weight of a ball falling at its terminal speed, and the air resistance force on the ball. A. 1only B. land2 C. 2only D....