This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nfd-verify:9514943 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions | |
function P(x::Float64, d::Int) | |
if d == 0 | |
return 1.0 | |
end | |
if d == 1 | |
return x | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions | |
using FastGaussQuadrature | |
function P(x::Float64, d::Int) | |
if d == 0 | |
return 1.0 | |
end | |
if d == 1 | |
return x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Distributions | |
using SpecialFunctions | |
using Plots | |
""" | |
Generator | |
""" | |
function φ(x::Real, ϑ::Real) | |
return (1+x)^(−1/ϑ) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function carbonation(P, T) { | |
return (P + 1.013) * Math.exp(-10.73797 + (2617.25 / (T + 273.15))) * 10 | |
} |