Test_Log Icon
Test_Log
Usage
PrimitiveComponents.Test_Log()
Behavior
\[ \begin{equation} \left[ \begin{array}{c} \mathrm{connect}\left( constant_{1_{+}y(t)}, log_{1_{+}u(t)} \right) \\ \mathrm{connect}\left( constant_{2_{+}y(t)}, log_{2_{+}u(t)} \right) \\ \mathrm{connect}\left( constant_{3_{+}y(t)}, log_{3_{+}u(t)} \right) \\ \mathrm{connect}\left( constant_{1_{+}y(t)}, log10_{1_{+}u(t)} \right) \\ \mathrm{connect}\left( constant_{2_{+}y(t)}, log10_{2_{+}u(t)} \right) \\ \mathrm{connect}\left( constant_{3_{+}y(t)}, log10_{3_{+}u(t)} \right) \\ \mathtt{log\_1.y}\left( t \right) = \log\left( \mathtt{log\_1.u}\left( t \right) \right) \\ \mathtt{constant\_1.y}\left( t \right) = \mathtt{constant\_1.k} \\ \mathtt{log\_2.y}\left( t \right) = \log\left( \mathtt{log\_2.u}\left( t \right) \right) \\ \mathtt{constant\_2.y}\left( t \right) = \mathtt{constant\_2.k} \\ \mathtt{log\_3.y}\left( t \right) = \log\left( \mathtt{log\_3.u}\left( t \right) \right) \\ \mathtt{constant\_3.y}\left( t \right) = \mathtt{constant\_3.k} \\ \mathtt{log10\_1.y}\left( t \right) = \log_{10}\left( \mathtt{log10\_1.u}\left( t \right) \right) \\ \mathtt{log10\_2.y}\left( t \right) = \log_{10}\left( \mathtt{log10\_2.u}\left( t \right) \right) \\ \mathtt{log10\_3.y}\left( t \right) = \log_{10}\left( \mathtt{log10\_3.u}\left( t \right) \right) \\ \end{array} \right] \end{equation} \]
Source
component Test_Log
log_1 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 40, "x2": 430, "y2": 140, "rot": 0}
}
}
}
constant_1 = BlockComponents.Constant(k = 1) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 60, "y1": 150, "x2": 160, "y2": 250, "rot": 0}
}
}
}
log_2 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 310, "y1": 600, "x2": 410, "y2": 700, "rot": 0}
}
}
}
constant_2 = BlockComponents.Constant(k = 10) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 80, "y1": 740, "x2": 180, "y2": 840, "rot": 0}
}
}
}
log_3 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 790, "y1": 30, "x2": 890, "y2": 130, "rot": 0}
}
}
}
constant_3 = BlockComponents.Constant(k = 0.5) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 570, "y1": 150, "x2": 670, "y2": 250, "rot": 0}
}
}
}
log10_1 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 270, "x2": 430, "y2": 370, "rot": 0}
}
}
}
log10_2 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 310, "y1": 860, "x2": 410, "y2": 960, "rot": 0}
}
}
}
log10_3 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 790, "y1": 260, "x2": 890, "y2": 360, "rot": 0}
}
}
}
relations
connect(constant_1.y, log_1.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 245, "y": 200}, {"x": 245, "y": 90}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_2.y, log_2.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 245, "y": 790}, {"x": 245, "y": 650}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_3.y, log_3.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 730, "y": 200}, {"x": 730, "y": 80}], "E": 2}],
"renderStyle": "standard"
}
}
connect(log10_1.u, constant_1.y) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 250, "y": 320}, {"x": 250, "y": 200}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_2.y, log10_2.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 250, "y": 790}, {"x": 250, "y": 910}], "E": 2}],
"renderStyle": "standard"
}
}
connect(log10_3.u, constant_3.y) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 730, "y": 310}, {"x": 730, "y": 200}], "E": 2}],
"renderStyle": "standard"
}
}
metadata {
"Dyad": {
"experiments": {},
"tests": {
"case1": {
"stop": 1,
"abstol": 0.00001,
"reltol": 0.00001,
"expect": {
"signals": ["log_1.y", "log_2.y", "log_3.y", "log10_1.y", "log10_2.y", "log10_3.y"]
}
}
},
"labels": [
{
"label": "$(instance)",
"x": 500,
"y": 1100,
"rot": 0,
"layer": "icon",
"attrs": {}
}
],
"path": {},
"doc": {"behavior": true}
}
}
end
Flattened Source
component Test_Log
log_1 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 40, "x2": 430, "y2": 140, "rot": 0}
}
}
}
constant_1 = BlockComponents.Constant(k = 1) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 60, "y1": 150, "x2": 160, "y2": 250, "rot": 0}
}
}
}
log_2 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 310, "y1": 600, "x2": 410, "y2": 700, "rot": 0}
}
}
}
constant_2 = BlockComponents.Constant(k = 10) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 80, "y1": 740, "x2": 180, "y2": 840, "rot": 0}
}
}
}
log_3 = PrimitiveComponents.Mathematical.Log() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 790, "y1": 30, "x2": 890, "y2": 130, "rot": 0}
}
}
}
constant_3 = BlockComponents.Constant(k = 0.5) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 570, "y1": 150, "x2": 670, "y2": 250, "rot": 0}
}
}
}
log10_1 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 330, "y1": 270, "x2": 430, "y2": 370, "rot": 0}
}
}
}
log10_2 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 310, "y1": 860, "x2": 410, "y2": 960, "rot": 0}
}
}
}
log10_3 = PrimitiveComponents.Mathematical.Log10() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 790, "y1": 260, "x2": 890, "y2": 360, "rot": 0}
}
}
}
relations
connect(constant_1.y, log_1.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 245, "y": 200}, {"x": 245, "y": 90}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_2.y, log_2.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 245, "y": 790}, {"x": 245, "y": 650}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_3.y, log_3.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 730, "y": 200}, {"x": 730, "y": 80}], "E": 2}],
"renderStyle": "standard"
}
}
connect(log10_1.u, constant_1.y) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 250, "y": 320}, {"x": 250, "y": 200}], "E": 2}],
"renderStyle": "standard"
}
}
connect(constant_2.y, log10_2.u) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 250, "y": 790}, {"x": 250, "y": 910}], "E": 2}],
"renderStyle": "standard"
}
}
connect(log10_3.u, constant_3.y) {
"Dyad": {
"edges": [{"S": 1, "M": [{"x": 730, "y": 310}, {"x": 730, "y": 200}], "E": 2}],
"renderStyle": "standard"
}
}
metadata {
"Dyad": {
"experiments": {},
"tests": {
"case1": {
"stop": 1,
"abstol": 0.00001,
"reltol": 0.00001,
"expect": {
"signals": ["log_1.y", "log_2.y", "log_3.y", "log10_1.y", "log10_2.y", "log10_3.y"]
}
}
},
"labels": [
{
"label": "$(instance)",
"x": 500,
"y": 1100,
"rot": 0,
"layer": "icon",
"attrs": {}
}
],
"path": {},
"doc": {"behavior": true}
}
}
endTest Cases
Test Case case1
pltpltpltpltpltpltRelated
- Examples
- Experiments
- Analyses