Formula |
📂View module documentation |
To create formulas, no direct fiddling around with the data type is necessary. You can just use the stringparser:
1: 2: 3: 4: 5: 6: |
|
We just created some Carbon Dioxide. Luckily there is no in silico climate change. But let's get rid of it anyways, by making some Sprudel*:
*german term for sprinkly water
1: 2: |
|
Quite refreshing, but boring nevertheless. Let's make some radioactive sprudel.
1: 2: 3: 4: 5: 6: 7: 8: 9: |
|
As you can see converting a refreshing drink to a refreshing, radioactive drink is quickly done. As a check up, let's compare the masses:
1: 2: |
|
namespace BioFSharp
val CO2 : Formula.Formula
module Formula
from BioFSharp
from BioFSharp
val parseFormulaString : strFormula:string -> Formula.Formula
val toString : f:Formula.Formula -> string
val sprudel : Formula.Formula
val add : f1:Formula.Formula -> f2:Formula.Formula -> Formula.Formula
module Table
from BioFSharp.Formula
from BioFSharp.Formula
val H2O : Formula.Formula
val monoC14 : Elements.Element
create a monoisotopic carbon consisting only of C14
create a monoisotopic carbon consisting only of C14
module Elements
from BioFSharp
from BioFSharp
val createMono : symbol:string -> x:Isotopes.Isotope * xcomp:float -> Elements.MonoIsotopic
module Isotopes
from BioFSharp
from BioFSharp
module Table
from BioFSharp.Isotopes
from BioFSharp.Isotopes
val C14 : Isotopes.Isotope
union case Elements.Element.Mono: Elements.MonoIsotopic -> Elements.Element
val lableWithC14 : molecule:'a -> 'b
exchanges all carbon in formula with monoIsotopic C14
exchanges all carbon in formula with monoIsotopic C14
val molecule : 'a
module Table
from BioFSharp.Elements
from BioFSharp.Elements
val C : Elements.Element
val radioactiveSprudel : Formula.Formula
val monoisoMass : f:Formula.Formula -> float