Question

In: Electrical Engineering

I see theres solution posted but its done in Mathmatica format. Can someone show me the...

I see theres solution posted but its done in Mathmatica format.

Can someone show me the solution using Matlab, please? Consider a particle in a room. How likely is the particle to hit the east wall of the room? Assume the western wall repels the particles and there is no vertical motion. The position at a subsequent time is related to the current position by x^n+1 = z^n + f(x^n) + Noise where f(x) = k/x^2 so that the force away from the western wall at x = 0 is proportional to the inverse of the distance squared. The noise is given by e times a random number between minus one and one. The eastern wall is taken to be at x = 5 and the constant of proportionality for the repulsive force is k = 0.5, with a noise amplitude of 1. Run at least 200 experiments and determine how many runs it took to reach the eastern wall. Plot the results.

Solutions

Expert Solution

ans:

This problem has to be done by programming in Mathematica since you need a random number generation and runs upto 200 times.I have written down the program for running the script 200 times with k=0.5 and western wall to be at origin x=0.

I take the initial position x0 to be 0.25,0.5,0.75... till 4.75.For each value of x0, I find the number of runs taken to reach x=5.

The program is as follows:(in Mathematica):

Array[x, 200];
k = 0.5;
\[Epsilon] = 1;
For[j = 0.25, j < 5, j = j + 0.25, x[1] = j; Print["=x0" j];
For[i = 1, i <= 200, i++,
x[i + 1] = x[i] + (k/(x[i]^2)) + \[Epsilon]*RandomReal[{-1, 1}];
If[x[i] > 5, Print["=i" i]; i = 200]]]

-------------------------------------------------

Now, here the ouput comes as ,

The plot is also shown.The X Axis corresponds to x0=initial position. And the Y Axis corresponds to the number of runs needed to reach eastern wall.

pls rate thumsup


Related Solutions

Can someone answer it for me and may i have the reference in apa format? thank...
Can someone answer it for me and may i have the reference in apa format? thank you in advance! 1. What is cholesterol's mechanism of absorption, synthesis, esterification, and metabolism? 2.Does the low-cholesterol diet translate to a lower risk of CHD? 3. Why is there a need to esterify cholesterols? 4. How does fatty acid contribute to the generation of energy via beta-oxidation process. 5Why is there a presence of ketones in uncontrolled type 1 DM? Why is it absent...
Can someone show me how this answer is 8,080 ? I keep coming up with the...
Can someone show me how this answer is 8,080 ? I keep coming up with the wrong number. Stellar Company has the following sales, variable cost, and fixed cost. If sales increase by $10,000 then their profit increases/decreases by how much? Sales $50,000 Variable Costs $9,600 Fixed Costs $29,000 Answer is 8,080 Calculate the total cost of FC and VC for $50,000. 2) Calculate the increase in VC based on the % increase in Sales. VC/50000 * new sales 3)...
I need someone to clarify one confusion to me , its regarding operations management. can someone...
I need someone to clarify one confusion to me , its regarding operations management. can someone explain the 3 strategies in aggregate capacity management in alot of details ( like 500 words) so I can understand about it more. the three strategies are (level, hybrid, and chase)
Okay, can someone please tell me what I am doing wrong?? I will show the code...
Okay, can someone please tell me what I am doing wrong?? I will show the code I submitted for the assignment. However, according to my instructor I did it incorrectly but I am not understanding why. I will show the instructor's comment after providing my original code for the assignment. Thank you in advance. * * * * * HourlyTest Class * * * * * import java.util.Scanner; public class HourlyTest {    public static void main(String[] args)     {        ...
Hi, I can't figure out this question in excel, can someone please show me the excel...
Hi, I can't figure out this question in excel, can someone please show me the excel formulas to input in order to solve for part A and B please!!!! The following table contains closing monthly stock prices for Oracle Corporation (ORCL), Microsoft Corporation (MSFT), and NVidia (NVDA) for the first half of 2017. Ticker 6/30/2017 5/31/2017 4/30/2017 3/31/2017 2/28/2017 1/31/2017 ORCL 50.14 45.39 44.96 44.61 42.59 40.11 MSFT 68.93 69.84 68.46 65.86 63.98 64.65 NVDA 144.56 144.35 104.3 108.93 101.48...
Can someone do this in Excel and show me the formulas as well. The management of...
Can someone do this in Excel and show me the formulas as well. The management of Tri-County Air Taxi, Inc., is considering the replacement of an old machine used in its helicopter repair facility. It is fully depreciated but it can be used by the corporation through 20x5. If management decides to replace the old machine, James Transportation Company has offered to purchase it for $69,000 on the replacement date. The old machine would have no salvage value in 20x5....
can someone make me a shopping cart for me ? i need to make a shopping...
can someone make me a shopping cart for me ? i need to make a shopping cart ,but i have no idea about how to do this i have made 3 line of items , this is one of the pruduct line line 1 ------------------------------------- <!DOCTYPE html> <html lang="en"> <head> <style> .div1 { border: 2px outset red; background-color: lightblue; text-align: center; } </style> </head> <!-- body --> <body style="background-color:silver; "class="main-layout position_head"> <!-- loader --> </li> </ul> </section> </nav> </section> </header>...
Hello, I was wondering if someone could show me the process as to how to answer...
Hello, I was wondering if someone could show me the process as to how to answer this question. The answers were posted by the teacher assistant however I do not actually know how to solve the question: The production function of a firm is given as ? =K 1/2, L1/2 , capital is 200. The rental rate for both labor and capital is 5 and 20. There are total 20 firms that produce the same good. A. Write down the...
I have the answers listed I just want to know if someone could show me the...
I have the answers listed I just want to know if someone could show me the work step by step! Q1. A ball of mass 60 g is dropped from a height of 3.4 m. It lands on the top of a frictionless ramp at height 1.8 m. The ramp is tilted at an angle of 20 degrees. (a) What is the velocity of the ball at the top of the ramp? Answer: 5.6 m/s (b) At the bottom of...
Can someone show me how to do a test for lack of fit for the following...
Can someone show me how to do a test for lack of fit for the following data? Please show all work for an up vote. Thanks. y x4 x7 x9 29.5 1.5 4 0 27.9 1.175 3 0 25.9 1.232 3 0 29.9 1.121 3 0 29.9 0.988 3 0 30.9 1.24 3 1 28.9 1.501 3 0 35.9 1.225 3 0 31.5 1.552 3 0 31 0.975 2 0 30.9 1.121 3 0 30 1.02 2 1 36.9 1.664...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT