Convert number f(t) decaying each minute to the number r(t)

Assignment Help Basic Computer Science
Reference no: EM13308309

Radioactive carbon 11 has a decay rate k of 0.0338 per minute-that is, a particular C11 atom has a 3.38% chance of decaying in any one minute. Suppose we start with 100 such atoms. We want to simulate their fate over a period of, say, 100 minutes, ending up with a bar graph showing how many atoms remain undecayed after 1, 2, ..., 100 minutes. We need to simulate when each of the 100 atoms decays. This can be done, for each atom, by generating a random numberr for each of the 100 minutes until eitherr > k (that atom decays) or the 100 minutes are up. If the atom decays at time t < 100, increment the frequency distribution f(t) by 1. f(t) will be the number of atoms decaying at time t minutes. Now convert the number f(t) decaying each minute to the number R(t) remaining each minute. If there are n atoms to start with, after one minute the number R(1) remaining will be n ?f(1) since f(1)is the number decaying during the first minute. The numberR(2)remaining after two minutes will be n ?f(1)?f(2). In general, thenumber remaining aftert minutes will be (in MATLAB notation) R(t) = n - sum( f(1:t) ) Write a script to compute R(t) and plot its bar graph. Superimpose on the graph the theoretical result, which is R(t) = 100exp?kt **The course is Programming in Physical Science not PHIL 100.

Reference no: EM13308309

Questions Cloud

Determine the magnitude and direction of the resultant force : determine the magnitude of the resultant force and its direction, measured counterclockwise from the positive axis. The other force is F=700N with a 15 degree angle to the x-axis.
Describe a pipelined datapath needed to support : Describe a pipelined datapath needed to support the following instruction. Also specify the values of control signals using the diagram in the text book.
Calculate the absolute pressure head and the gage pressure : The pressure in the steam condenser of a nuclear power plant is 1 psia. Calculate the absolute pressure head, the gage pressure, the gage pressure head, the vacuum pressure, and the vacuum pressure head under standard conditions.
Estimate the final dbm value for a radio : Estimate the final dBm value for a radio if the radio has .1 Watt of power, if there is a 4:1 amplifier before transmission, and if there is attenuation to 1/8 the original signal strength between the sender and receiver.
Convert number f(t) decaying each minute to the number r(t) : Radioactive carbon 11 has a decay rate k of 0.0338 per minute-that is, a particular C11 atom has a 3.38% chance of decaying in any one minute. Suppose we start with 100 such atoms.
What is the percentage change in the specific weight : At a depth of 4 miles in the ocean the ppressure is 9520 psia. Assume that the specific weight at the surface is 64.0 lb/ft^3 and that the average volume modulus is 320000psi for the pressure range.
How to determine maximum positive factored design moments : How to determine maximum positive and maximum negative factored design moments at a certain point
What that means for your decision to do : Based on the above data, and on your preliminary SWOT analysis from Applied Topic 1, write a 3-4 page essay on the overall health of the economy and what that means for your decision to do
Determine what is the percentage yield of the reaction : The combustion of 52.8g of butane produces 104.0g of CO2. what is the percentage yield of the reaction

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write script that enables user to enter eigher a fahrenheit

Use these functions to write a script that enables the user to enter eigher a Fahrenheit or a Celsius temperature and displays the Celsius or Fahrenheit equivalent.

  Write advantages of group work on project

When working in group are you generally a leader, a follower, a slacker or some other role? Describe. Write down two advantages of group work and two disadvantages of working on project in group?

  Write a python function celcius fahrenheit

Write a python function celcius_fahrenheit wich takes temperature values from a list and changes them into fahrenheit values.

  Popular day-trip destination for local families

Two large international holiday companies have been planning to build hotel and leisure facilities for tourists on one of the island's beaches, which is also a popular day-trip destination for local families.

  Discuss whether you accept demand from manager

Discuss whether you should accept this demand from your manager or whether you should persuade your team to give their time to the organization rather than to their families. What factors might be significant in your decision?

  How many bit comparisons are made

How many bit comparisons (both successful and unsuccessful) are made by the brute-force string-matching algorithm in searching for the pattern 11001 in a binary text of 500 ones?

  Control that programmee with key

Please control that programmee with key (left ,right ,up and down ) and also make a chain of snake when eat egg,and game over when snake strike with hurdel.

  Detection software automatically analyzes network traffic

What detection software automatically analyzes all network traffic. Assesses system vulnerabilities, recognizess any unauthorized access (intrusions).

  Under what circumstances will it fail

will the above function compile in C++? Is it correct? Under what circumstances will it fail and how should it be corrected?

  Research about yahtzee

Previously you conducted research about Yahtzee. Hopefully you gained valuable information on the game, scoring, and the outcomes. Now, let's work on creating our dice and our number generator.

  Circut which detects even parity

Consider the following circuit, which detects even parity. There are one output, even, and three inputs, a(2), a(l) and a(0), which are grouped as a vector or bus. The output is asserted when there are even numbers (i.e., 0 or 2) of 1s from the in..

  Determine the highest bit rate possible for a circuit

1. Determine the number of conditions possible for a binary code

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