Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| documentation:language_reference:objects:responsefunction:functions:new [2024/12/22 21:00] – Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:functions:new [2025/11/20 04:20] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== New ====== | + | ====== |
| ### | ### | ||
| + | |||
| ResponseFunction.New(Table) creates a new response function object according to the values in Table. Response functions can be of 4 different types (ListOfPoles, | ResponseFunction.New(Table) creates a new response function object according to the values in Table. Response functions can be of 4 different types (ListOfPoles, | ||
| + | |||
| + | ### | ||
| + | |||
| + | ### | ||
| + | |||
| + | The input table contains the elements | ||
| + | * " | ||
| + | * " | ||
| + | * " | ||
| + | * Depending on the type lists of doubles, matrices, or complex matrices $A$ and $B$. Each section below starts by defining $G(\omega, | ||
| + | |||
| ### | ### | ||
| Line 45: | Line 57: | ||
| a3 = 1 | a3 = 1 | ||
| B1s = Matrix.New( {{1, | B1s = Matrix.New( {{1, | ||
| - | B1 = B1s * B1s | + | B1 = B1s * B1s--the B matrices have to be hermitian to ensure H to be hermitian |
| B2s = Matrix.New( {{2, | B2s = Matrix.New( {{2, | ||
| - | B2 = B2s * B2s | + | B2 = B2s * B2s--the B matrices have to be hermitian to ensure H to be hermitian |
| B3s = Matrix.New( {{3, | B3s = Matrix.New( {{3, | ||
| - | B3 = B3s * B3s | + | B3 = B3s * B3s--the B matrices have to be hermitian to ensure H to be hermitian |
| G = ResponseFunction.New( { {A0, | G = ResponseFunction.New( { {A0, | ||
| print(" | print(" | ||