Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NanoComp/meep
/ pw_amp
Function
pw_amp
python/examples/binary_grating_oblique.py:49–53 ·
view source on GitHub ↗
(k, x0)
Source
from the content-addressed store, hash-verified
47
48
49
def
pw_amp(k, x0):
50
def
_pw_amp(x):
51
return
cmath.exp(1j * 2 * math.pi * k.dot(x + x0))
52
53
return
_pw_amp
54
55
56
src_pt = mp.Vector3(-0.5 * sx + dpml + 0.3 * dsub, 0, 0)
Callers
1
binary_grating_oblique.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected