Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
documentation:language_reference:objects:responsefunction:operations:eq [2024/12/17 16:09] – created Maurits W. Haverkort | documentation:language_reference:objects:responsefunction:operations:eq [2024/12/20 17:59] (current) – Maurits W. Haverkort | ||
---|---|---|---|
Line 3: | Line 3: | ||
### | ### | ||
- | alligned paragraph text | + | You can compare two response functions. Two response functions $G1(\omega, |
- | ### | + | |
- | + | ||
- | ===== Example ===== | + | |
- | + | ||
- | ### | + | |
- | description text | + | |
### | ### | ||
+ | For example | ||
==== Input ==== | ==== Input ==== | ||
<code Quanty Example.Quanty> | <code Quanty Example.Quanty> | ||
- | -- some example code | + | a1 = {0, -1,-0.5, 0, |
+ | b1 = { 0.2, 0.4, 0.2, 0.4, 0.6, 0.2} | ||
+ | G1 = ResponseFunction.New( {a1, | ||
+ | |||
+ | a2 = {0, -1,-0.5, 0, | ||
+ | b2 = { 0.2, 0.4, 0.2, 0.4, 0.6, 0.2+1E-12} | ||
+ | G2 = ResponseFunction.New( {a2, | ||
+ | |||
+ | a3 = {0, -1,-0.5, 0, | ||
+ | b3 = { 0.2, 0.4, 0.2, 0.4, 0.6, 0.2+1E-10} | ||
+ | G3 = ResponseFunction.New( {a3, | ||
+ | |||
+ | |||
+ | print(" | ||
+ | print(" | ||
</ | </ | ||
==== Result ==== | ==== Result ==== | ||
<file Quanty_Output> | <file Quanty_Output> | ||
- | text produced as output | + | G1 is equal to G2 true |
+ | G1 is equal to G3 false | ||
</ | </ | ||
===== Table of contents ===== | ===== Table of contents ===== | ||
- | {{indexmenu> | + | {{indexmenu> |