Question

Find the gamma constant for objects traveling close to the speed of light. Here we are experimenting several speeds of light

How do I solve using Matlab?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  • In this program we have to find the gamma value for each combination of V and C.

Program plan:

  • define two vectors v and c with given values.
  • loop through each index of v and c, calculate gamma and add it a vector.
  • Tabulate the values of v, c and gamma

program

v = [2.9,2.6,1.7,2.1,3,1.01,2.36]*1e8;

c = [3,3.1,2.9]*1e8;

g = @(v,c) 1/(1-(v/c)^2)^0.5;

gamma = [];

for i = 1:length(v)

for j = 1:length(c)

gamma = [gamma; v(i) c(j) g(v(i),c(j))];

end

end

T = table(gamma(:,1),gamma(:,2),gamma(:,3));

T.Properties.VariableNames = {'v','c','gamma'};

disp(T)

output:
V c gamma 2.9e+08 2.9e+08 2.9+08 2.6e+08 2.6e+08 2.6e+08 1.7e+08 1.7e+08 1.7e+08 2. le+08 2. le+08 2. le+08 3e+08 3e+08 Se+08

Add a comment
Know the answer?
Add Answer to:
How do I solve using Matlab? Find the gamma constant for objects traveling close to the...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS 1) Find the volume of a...

    MATLAB QUESTION !!! PLEASE USE MATLAB FOR BOTH QUESTIONS!!! THANKS 1) Find the volume of a cone if the radius 13 meters and height is 22 meters. πη2h V=- 3 2) Find the gamma constant for objects traveling close to the speed of light. Here we are experimenting several speeds of light constants (even though the true speed of light is known). Below are the velocities of the objects and the speed of light constants used. V=[ 2.9, 2.6, 1.7,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT