Additional doc on cascading 2N-ports Network
From the example given in the mailing list
" Note that if you multiply a Network by an `numpy.ndarray` be sure to place the array on right side."
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "## Comparaisons of Network\n",
+ "Comparison operators also work with networks:"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "short == delayshort"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "short != delayshort"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
"cell_type": "markdown",
"metadata": {},
"source": [
- "Comparison operators also work with networks."
+ "The cascading operator also work for to 2N-port Networks. This is illustrated in [this example on balanced Networks](../examples/networktheory/Balanced%20Network%20De-embedding.ipynb). For example, assuming you want to cascade three 4-port Network `ntw1`, `ntw2` and `ntw3`, you can use:\n",
+ "`resulting_ntw = ntw1 ** ntw2 ** ntw3`\n",
+ " The port scheme assumed by the ** cascading operator with 4-port networks is:"
+ ]
+ },
+ {
+ "cell_type": "raw",
+ "metadata": {},
+ "source": [
+ " ntw1 ntw2 ntw3\n",
+ " +----+ +----+ +----+\n",
+ "0-|0 2|--|0 2|--|0 2|-2\n",
+ "1-|1 3|--|1 3|--|1 3|-3\n",
+ " +----+ +----+ +----+"
]
},
{
"metadata": {},
"source": [
"Note that this function takes into account port impedances. If two connected ports have different port impedances, an appropriate impedance mismatch is inserted. \n",
+ "\n",
+ "For advanced connection between arbitrary N-port Networks, the `Circuit` object is more relevant since it allows defining explicitely the connections between ports and Networks. For more information, please refer to the [Circuit documentation](Circuit.ipynb). "
+ ]
+ },
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
"\t\n",
"## Interpolation and Concatenation\n",
"\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.5"
+ "version": "3.7.6"
}
},
"nbformat": 4,
