nebmit 9f952c91b0
feat: modifed structure into a Julia compliant package
Added Project.toml and Manifest.toml.
Moved sourcecode to julia/TUG/src/

[skip ci]
2023-12-04 09:15:08 +01:00

12 lines
348 B
Julia

function calcAlphaIntercell(alpha1::T, alpha2::T) where {T}
2 / ((1 / alpha1) + (1 / alpha2))
end
function calcAlphaIntercell(alpha1::Vector{T}, alpha2::Vector{T}) where {T}
2 ./ ((1 ./ alpha1) .+ (1 ./ alpha2))
end
function calcAlphaIntercell(alpha1::Matrix{T}, alpha2::Matrix{T}) where {T}
2 ./ ((1 ./ alpha1) .+ (1 ./ alpha2))
end