!scope="col"| Description
!scope="col"| Notes
|-
| style="width:80px;" | rect(x)
| style="width:150px;" | EMAG Python function
| style="width:270px;" | Rectangle function
| style="width:270px;" | 1 if |x|≤0.5, 0 elsewhere
|-
| tri(x)
| EMAG Python function
| Triangle function
| 1 if |1-x|≤1, 0 elsewhere
|-
| spline2(x)
| EMAG Python function
| Quadratic spline function
| -
|-
| spline3(x)
| EMAG Python function
| Cubic spline function
| -
|-
| step(x)
| EMAG Python function
| Step function
| 1 if x>0, 0 if x<0
|-
| sgn(x)
| Std. Python function
| Sign function
| 1 if x>0, -1 if x<0
|-
| ramp(x)
| EMAG Python function
| Ramp function
| x if x>0, 0 if x<0
|-
| sqr_wave(x)
| EMAG Python function
| Square wave function
| -
|-
| tri_wave(x)
| EMAG Python function
| Triangle wave function
| -
|-
| sawtooth(x)
| EMAG Python function
| Sawtooth wave function
| -
|-
| sinc(x)
| EMAG Python function
| Sinc function
| sin(pi*x)/(pi*x)
|-
| gauss(x,mu,sigma)
|}
== EM.Cube's Design Python Functions ==
Â
{| class="wikitable"
!scope="col"| Syntax
!scope="col"| Type
!scope="col"| Description
!scope="col"| Notes
|-
| style="width:100px;" | microstrip_design(z0,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the width-to-height ratio of a microstrip transmission line
| style="width:250px;" | z0: characteristic impedance in Ohms, er: substrate permittivity
|-
| style="width:100px;" | microstrip_z0(w,h,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the characteristic impedance of a microstrip transmission line in Ohms
| style="width:250px;" | w: microstrip width, h: substrate height, er: substrate permittivity
|-
| style="width:100px;" | microstrip_eps_eff(w,h,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the effective permittivity of a microstrip transmission line
| style="width:250px;" | w: microstrip width, h: substrate height, er: substrate permittivity
|-
| style="width:100px;" | microstrip_lambda_g(w,h,er,freq_hertz)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the guide wavelength of a microstrip transmission line in meters
| style="width:250px;" | w: microstrip width, h: substrate height, er: substrate permittivity, freq_hertz: frequency in Hz
|-
| style="width:100px;" | cpw_design_w(z0,s,h,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the slot width of a coplanar waveguide (CPW) transmission line
| style="width:250px;" | z0: characteristic impedance in Ohms, s: center strip width (or slot spacing), h: substrate height, er: substrate permittivity
|-
| style="width:100px;" | cpw_design_s(z0,w,h,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the center strip width (or slot spacing) of a coplanar waveguide (CPW) transmission line
| style="width:250px;" | z0: characteristic impedance in Ohms, w: slot width, h: substrate height, er: substrate permittivity
|-
| style="width:100px;" | coaxial_design(z0,er)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the ratio of radius of the outer conductor to the radius of the inner conductor of a coaxial transmission line
| style="width:250px;" | z0: characteristic impedance in Ohms, er: core permittivity
|-
| style="width:100px;" | waveguide_design(er,freq_hertz)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the minimum larger dimension in meter of the cross section of a hollow rectangular waveguide above cutoff
| style="width:250px;" | er: filling permittivity, freq_hertz: frequency in Hz
|-
| style="width:100px;" | horn_design_a(D0_dB,a_lambda,b_lambda)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the wavelength-normalized larger dimension of the aperture of an optimal pyramidal horn antenna
| style="width:250px;" | D0_dB: directivity d, a_lambda: wavelength-normalized larger dimension of the feed waveguide, b_lambda: wavelength-normalized smaller dimension of the feed waveguide
|-
| style="width:100px;" | horn_design_b(D0_dB,a_lambda,b_lambda)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the wavelength-normalized smaller dimension of the aperture of an optimal pyramidal horn antenna
| style="width:250px;" | D0_dB: directivity d, a_lambda: wavelength-normalized larger dimension of the feed waveguide, b_lambda: wavelength-normalized smaller dimension of the feed waveguide
|-
| style="width:100px;" | horn_design_l(D0_dB,a_lambda,b_lambda)
| style="width:150px;" | EMAG Python function
| style="width:250px;" | Returns the wavelength-normalized length of an optimal pyramidal horn antenna
| style="width:250px;" | D0_dB: directivity d, a_lambda: wavelength-normalized larger dimension of the feed waveguide, b_lambda: wavelength-normalized smaller dimension of the feed waveguide
|}
== EM.Cube's Native Python Functions ==
DESCRIPTION: Rail-sweeps the specified sweep object along the specified curve object.
Â
====ramp====
Â
SYNTAX: ramp({{ArgTypeReal}} x)
Â
EXAMPLE: ''ramp(0.5)''
Â
DESCRIPTION: Computes and returns the ramp function: x if x>0, 0 if x<0.
====random_group====
DESCRIPTION: Creates a receiver set in [[EM.Terrano]]. If the receiver set 'label' already exists, its properties are modified.
Â
====rect====
Â
SYNTAX: rect({{ArgTypeReal}} x)
Â
EXAMPLE: ''rect(0.1)''
Â
DESCRIPTION: Computes and returns the rectangular window function: 1 if x<0.5, 0 elsewhere.
====rect_gap_src====
DESCRIPTION: Sets [[EM.Cube]]'s project length units.
Â
====sgn====
Â
SYNTAX: sgn({{ArgTypeReal}} x)
Â
EXAMPLE: ''sgn(-1.0)''
Â
DESCRIPTION: Computes and returns the signum function: 1 if x>0, -1 if x<0.
====short_dipole====
DESCRIPTION: Applies spline fit transformation on a specified polymesh, polyline or polystrip object.
Â
====spline2====
Â
SYNTAX: spline2({{ArgTypeReal}} x)
Â
EXAMPLE: ''spline2(1.0)''
Â
DESCRIPTION: Computes and returns the quadratic B-spline function.
Â
====spline3====
Â
SYNTAX: spline3({{ArgTypeReal}} x)
Â
EXAMPLE: ''spline3(1.0)''
Â
DESCRIPTION: Computes and returns the cubic B-spline function.
Â
====sqr_wave====
Â
SYNTAX: sqr_wave({{ArgTypeReal}} x)
Â
EXAMPLE: ''sqr_wave(0.5)''
Â
DESCRIPTION: Computes and returns the periodic square wave function.
Â
====step====
Â
SYNTAX: step({{ArgTypeReal}} x)
Â
EXAMPLE: ''step(1.0)''
Â
DESCRIPTION: Computes and returns the unit step function: 1 if x>0, 0 if x<0.
====strip_sweep====
DESCRIPTION: Creates a transmitter set in [[EM.Terrano]]. If the transmitter set 'label' already exists, its properties are modified.
Â
====tri====
Â
SYNTAX: tri({{ArgTypeReal}} x)
Â
EXAMPLE: ''tri(0.1)''
Â
DESCRIPTION: Computes and returns the triangular window function: 1-|x| if x<1, 0 elsewhere.
====triangle_strip====