Question: CellN = 2 0 1 ; TimeN = 1 0 0 ; TransmissionProb = 0 . 1 ; RecoveryProb = 0 . 0 ; SpontaneousProb
CellN ;
TimeN ;
TransmissionProb ;
RecoveryProb ;
SpontaneousProb ;
MoveBy SelectTuples # &
NeighborN LengthMoveBy
CurrentWorld TableRandomIntegerCellNCellN;
ArrayPlotCurrentWorld
ColorRules Black, Green, Red
ColorFunctionScaling False, Mesh False
CurrentStep ;
WorldPlot
ArrayPlotCurrentWorld
ColorRules Black, Green, Red
ColorFunctionScaling False, Mesh False;
DynamicTextStyleCurrentStep Blue, Italic,
DynamicWorldPlot
UpdateStateiInteger, jInteger :
Module
IfCurrentWorldi j Return;
TwoN
CountCurrentWorld## & @@@ Mod#CellN CellN
& @ ConstantArrayi j NeighborN MoveBy;
IfTwoN
IfCurrentWorldi j
ReturnRandomChoice RecoveryProb, RecoveryProb
;
IfCurrentWorldi j
ReturnRandomChoice SpontaneousProb, SpontaneousProb
;
;
IfTwoN
IfCurrentWorldi j Return;
IfCurrentWorldi j
ReturnRandomChoice TransmissionProb,
TransmissionProb
Fort t TimeN, t
CurrentStep t;
CurrentWorld
TableUpdateStatei ji CellNj CellN;
WorldPlot
ArrayPlotCurrentWorld
ColorRules Black, Green, Red
ColorFunctionScaling False, Mesh False;
Pause;
What would be the highest recovery probability if the transmission probability is where the world turns completely green please use the code on mathematica?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
