Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryI committed Feb 8, 2025
1 parent dd134d2 commit 8d9eb42
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions Kernel/Transmission.wl
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ TransmissionObject[a_Association]["Approximated k"] := With[{
gain = a["Gain"]
},
QuantityArray[
Join[{0, 0}, {#[[1]], - 0.159152 Log[#[[2]] gain ] / (#[[1]] thickness) } &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["T"]}], 1] ]
Join[{{0, 0}}, {#[[1]], - 0.159152 Log[#[[2]] gain ] / (#[[1]] thickness) } &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["T"]}], 1] ]
, {1/"Centimeters", 1}]
]

Expand All @@ -227,7 +227,7 @@ TransmissionObject[a_Association]["Approximated \[Alpha]"] := With[{
gain = a["Gain"]
},
QuantityArray[
Join[{0, 0}, {#[[1]], ((- 0.159152 Log[#[[2]] gain ] / (#[[1]] thickness)) 4 \[Pi] 10^12 #[[1]])/(33.356 2.9979 10^10)} &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["T"]}], 1] ]
Join[{{0, 0}}, {#[[1]], ((- 0.159152 Log[#[[2]] gain ] / (#[[1]] thickness)) 4 \[Pi] 10^12 #[[1]])/(33.356 2.9979 10^10)} &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["T"]}], 1] ]
, {1/"Centimeters", 1/"Centimeters"}]
]

Expand All @@ -238,7 +238,7 @@ TransmissionObject[a_Association]["Approximated n"] := With[{
n0 = a["n0"]
},
QuantityArray[
Join[{0, n0}, {#[[1]], 1.0 + 0.159152 (#[[2]] + shift) / (#[[1]] thickness) } &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["Phase"]}],1] ]
Join[{{0, n0}}, {#[[1]], 1.0 + 0.159152 (#[[2]] + shift) / (#[[1]] thickness) } &/@ Drop[Transpose[Normal /@ {a["Frequencies"], a["Phase"]}],1] ]
, {1/"Centimeters", 1}]
]

Expand Down
2 changes: 1 addition & 1 deletion PacletInfo.wl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ PacletObject[
"Creator" -> "Kirill Vasin",
"License" -> "MIT",
"PublisherID" -> "JerryI",
"Version" -> "0.0.9",
"Version" -> "0.1.0",
"WolframVersion" -> "13+",
"PrimaryContext" -> "JerryI`TDSTools`",
"Extensions" -> {
Expand Down

0 comments on commit 8d9eb42

Please sign in to comment.