General > RANT
Forget Num, Its the week, evil week.
Numsgil:
Hehe, keep at it Bots. Math is way fun :idea:
MrMound:
wow complicated :blink:(considering I know no calcules or even precalcules)
PurpleYouko:
--- Quote ---wow complicated :blink:(considering I know no calcules or even precalcules)
--- End quote ---
That's not calulus! It's mostly trigonometry. Nice bit of math though.
This is calculus
--- Code: ---With Outgrid
.row = row
HLs = (HL * 1440 * 60)
Lambda = Natlog2 / HLs
M = CDbl(SampleMass.Text)
.Col = 1: IAB = CDbl(.Text)
If PrequalOption Then
AM = Out(index).AtomicMass
End If
If ShipOption Then
AM = Out(index).AtomicMass
End If
TF = CDbl(Thermal.Text)
.Col = 4: T = CDbl(.Text)
.Col = 5: R = CDbl(.Text)
RF = CDbl(Resonance.Text)
L = Lambda
IT = CDbl(RadTime.Text)
.Col = 3: RR = .Text
.Col = 7
End With
Select Case RR
Case "(n,g)"
step1 = (M * IAB * 6.022E+23) / AM
step2 = (TF * T * 1E-24) + (RF * R * 1E-24)
step3 = (1 - Exp(-L * IT * 3600))
step4 = (step1 * step2 * step3) / 37000000000#
CalcActivity2 = ((((M * IAB * 6.022E+23) / AM) * (TF * T * 1E-24 + RF * R * 1E-24)) * (1 - Exp(-L * IT * 3600))) / 37000000000#
End Select
--- End code ---
(taken from the project on which I am working to calculate the specific activity (in Curies) of a sample that has been irradiated in our Nuclear reactor) :D
The section of code inside the select case, calculates the percentage chance of a specific atom to absorb a thermal neutron over a specific time period at a specified neutron flux. It also calculates the amount of radioactivity present in the sample when it is removed from the reactor.
This bit of code is working happily but the more advanced version of this (a version that allows for a constant change in the availability of parent isotopes and for daughter isotopes to also capture neutrons) is currently causing my head to explode. :wacko:
Numsgil:
Hehe, calc can do that to a man.
Botsareus:
I got more:
Num doing a horable your mom joke on me , and trowing up for some reason all over the place.
Zelos saying I can't program, It would of been alright, but zelos does not visit the forum often enough so I still did not get him to respond to that....
I need to go play http--www.brownt.co.uk-dpc-untangle.swf
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version