Test_Hyperbolic Icon
Test_Hyperbolic
Usage
PrimitiveComponents.Test_Hyperbolic()
Behavior
\[ \begin{equation} \left[ \begin{array}{c} \mathrm{connect}\left( sine_{+}y(t), sinh_{+}u(t), cosh_{+}u(t), tanh_{+}u(t), asinh_{+}u(t), acosh_{+}u(t), atanh_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), cosh_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), tanh_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), asinh_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), acosh_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), atanh_{+}u(t) \right) \\ \mathtt{sinh.y}\left( t \right) = \sinh\left( \mathtt{sinh.u}\left( t \right) \right) \\ \mathtt{cosh.y}\left( t \right) = \cosh\left( \mathtt{cosh.u}\left( t \right) \right) \\ \mathtt{tanh.y}\left( t \right) = \tanh\left( \mathtt{tanh.u}\left( t \right) \right) \\ \mathtt{asinh.y}\left( t \right) = \mathrm{arcsinh}\left( \mathtt{asinh.u}\left( t \right) \right) \\ \mathtt{acosh.y}\left( t \right) = \mathrm{arccosh}\left( \mathtt{acosh.u}\left( t \right) \right) \\ \mathtt{atanh.y}\left( t \right) = \mathrm{arctanh}\left( \mathtt{atanh.u}\left( t \right) \right) \\ \mathtt{sine.y}\left( t \right) = \mathtt{sine.offset} + \mathtt{sine.amplitude} ifelse\left( t \geq \mathtt{sine.start\_time}, \sin\left( \mathtt{sine.phase} + 6.2832 \mathtt{sine.frequency} \left( - \mathtt{sine.start\_time} + t \right) \right), \sin\left( \mathtt{sine.phase} \right) \right) \\ \end{array} \right] \end{equation} \]
Source
component Test_Hyperbolic
sinh = PrimitiveComponents.Mathematical.Sinh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 600, "y1": 10, "x2": 700, "y2": 110, "rot": 0}
}
}
}
cosh = PrimitiveComponents.Mathematical.Cosh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 610, "y1": 170, "x2": 710, "y2": 270, "rot": 0}
}
}
}
tanh = PrimitiveComponents.Mathematical.Tanh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 620, "y1": 340, "x2": 720, "y2": 440, "rot": 0}
}
}
}
asinh = PrimitiveComponents.Mathematical.Asinh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 630, "y1": 500, "x2": 730, "y2": 600, "rot": 0}
}
}
}
acosh = PrimitiveComponents.Mathematical.Acosh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 630, "y1": 680, "x2": 730, "y2": 780, "rot": 0}
}
}
}
atanh = PrimitiveComponents.Mathematical.Atanh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 640, "y1": 850, "x2": 740, "y2": 950, "rot": 0}
}
}
}
sine = BlockComponents.Sine(start_time = 2, amplitude = 1.0, frequency = 0.2) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 190, "y1": 450, "x2": 290, "y2": 550, "rot": 0}
}
}
}
relations
connect(sinh.u, cosh.u, tanh.u, sine.y, asinh.u, acosh.u, atanh.u) {
"Dyad": {
"edges": [
{"S": 1, "M": [{"x": 500, "y": 60}], "E": -1},
{"S": 2, "M": [], "E": -1},
{"S": -1, "M": [], "E": -2},
{"S": 3, "M": [], "E": -2},
{"S": -2, "M": [], "E": -3},
{"S": -3, "M": [{"x": 500, "y": 500}], "E": 4},
{"S": 5, "M": [], "E": -4},
{"S": -4, "M": [{"x": 500, "y": 550}], "E": -3},
{"S": 6, "M": [{"x": 500, "y": 730}], "E": -5},
{"S": -5, "M": [], "E": -4},
{"S": 7, "M": [{"x": 500, "y": 900}], "E": -5}
],
"junctions": [
{"x": 500, "y": 220},
{"x": 500, "y": 390},
{"x": 500, "y": 500},
{"x": 500, "y": 550},
{"x": 500, "y": 730}
],
"renderStyle": "standard"
}
}
connect(sine.y, cosh.u) {}
connect(sine.y, tanh.u) {}
connect(sine.y, asinh.u) {}
connect(sine.y, acosh.u) {}
connect(sine.y, atanh.u) {}
metadata {
"Dyad": {
"experiments": {},
"tests": {},
"labels": [
{
"label": "$(instance)",
"x": 500,
"y": 1100,
"rot": 0,
"layer": "icon",
"attrs": {}
}
],
"path": {},
"doc": {"behavior": true}
}
}
end
Flattened Source
component Test_Hyperbolic
sinh = PrimitiveComponents.Mathematical.Sinh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 600, "y1": 10, "x2": 700, "y2": 110, "rot": 0}
}
}
}
cosh = PrimitiveComponents.Mathematical.Cosh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 610, "y1": 170, "x2": 710, "y2": 270, "rot": 0}
}
}
}
tanh = PrimitiveComponents.Mathematical.Tanh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 620, "y1": 340, "x2": 720, "y2": 440, "rot": 0}
}
}
}
asinh = PrimitiveComponents.Mathematical.Asinh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 630, "y1": 500, "x2": 730, "y2": 600, "rot": 0}
}
}
}
acosh = PrimitiveComponents.Mathematical.Acosh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 630, "y1": 680, "x2": 730, "y2": 780, "rot": 0}
}
}
}
atanh = PrimitiveComponents.Mathematical.Atanh() {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 640, "y1": 850, "x2": 740, "y2": 950, "rot": 0}
}
}
}
sine = BlockComponents.Sine(start_time = 2, amplitude = 1.0, frequency = 0.2) {
"Dyad": {
"placement": {
"diagram": {"iconName": "default", "x1": 190, "y1": 450, "x2": 290, "y2": 550, "rot": 0}
}
}
}
relations
connect(sinh.u, cosh.u, tanh.u, sine.y, asinh.u, acosh.u, atanh.u) {
"Dyad": {
"edges": [
{"S": 1, "M": [{"x": 500, "y": 60}], "E": -1},
{"S": 2, "M": [], "E": -1},
{"S": -1, "M": [], "E": -2},
{"S": 3, "M": [], "E": -2},
{"S": -2, "M": [], "E": -3},
{"S": -3, "M": [{"x": 500, "y": 500}], "E": 4},
{"S": 5, "M": [], "E": -4},
{"S": -4, "M": [{"x": 500, "y": 550}], "E": -3},
{"S": 6, "M": [{"x": 500, "y": 730}], "E": -5},
{"S": -5, "M": [], "E": -4},
{"S": 7, "M": [{"x": 500, "y": 900}], "E": -5}
],
"junctions": [
{"x": 500, "y": 220},
{"x": 500, "y": 390},
{"x": 500, "y": 500},
{"x": 500, "y": 550},
{"x": 500, "y": 730}
],
"renderStyle": "standard"
}
}
connect(sine.y, cosh.u) {}
connect(sine.y, tanh.u) {}
connect(sine.y, asinh.u) {}
connect(sine.y, acosh.u) {}
connect(sine.y, atanh.u) {}
metadata {
"Dyad": {
"experiments": {},
"tests": {},
"labels": [
{
"label": "$(instance)",
"x": 500,
"y": 1100,
"rot": 0,
"layer": "icon",
"attrs": {}
}
],
"path": {},
"doc": {"behavior": true}
}
}
endTest Cases
No test cases defined.
Related
- Examples
- Experiments
- Analyses