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

  How to choose optimal location of pipeline for oil field

A Consultant is to lay oil pipeline running east to west through the oil field of n wells. From each well spur pipeline is to be connected directly to main pipeline along shortest path.

  Deadlock prevention

In  deadlock prevention , we constrain resource requests to prevent at least one of the four conditions of deadlock (Mutual exclusion, Hold and wait, No preemption, Circular wait). This is either done indirectly, by preventing one of the three necess..

  Find probability of having no umbrella if it rains

When rain is forecast, Mr. Pickwick takes his umbrella. When rain is not forecast, he takes it with  probability 1/3. Find the probability that Pickwick has no umbrella, given that it rains.

  Design a circuit that takes two 3-bit binary number

design a circuit that takes two 3-bit binary numbers A2A1A0 and B2B1B0 as inputs and that has single output L that is "one" if and only if A2A1A0 is less than B2B1B0. Your design can make use of NOT gates, XNOR gates, AND gates and OR gates as requir..

  Construct the bifurcation diagram

Solve the full Hodgkin-Huxley equations numerically with a variety of constant current inputs. For what range of inputs are there self-sustained oscillations? Construct the bifurcation diagram.

  Flight availability request application

Define a simple Web Service in WSDL that returns flight information regarding flights of a particular flight operator, see the first question

  Write a program that translates a number

Write a program (called Grades) that translates a number between 0 and 4 into the closest letter grade. For example, the number 2.8 (which might have been the average of several grades) would be converted to B-. Break ties in favor of the better g..

  What will a back-propagation network for problem

What will a back-propagation network predict for this example, assuming that it has been trained and reaches a global optimum?

  Program to find out median selling price

Input selling prices of all homes in Botany Bay sold during year 2002 and find out median selling price. The median of a list of N numbers is.

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  Find the expected number of jobs in the system at any time

An M/M/1 queuing system spends 30% of the time in the idle state. Find the expected number of jobs in the system at any time.

  Add the form which includes richtextbox control

Add the form which includes RichTextBox control and several predefined template letters. This part of program would be used to write letters to your customers.

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