Test_InverseTrigonometric Test_InverseTrigonometric Icon

Test_InverseTrigonometric

Usage

PrimitiveComponents.Test_InverseTrigonometric()

Behavior

\[ \begin{equation} \left[ \begin{array}{c} \mathrm{connect}\left( sine_{+}y(t), asin_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), acos_{+}u(t) \right) \\ \mathrm{connect}\left( sine_{+}y(t), atan_{+}u(t) \right) \\ \mathtt{asin.y}\left( t \right) = \arcsin\left( \mathtt{asin.u}\left( t \right) \right) \\ \mathtt{acos.y}\left( t \right) = \arccos\left( \mathtt{acos.u}\left( t \right) \right) \\ \mathtt{atan.y}\left( t \right) = \arctan\left( \mathtt{atan.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_InverseTrigonometric
  asin = PrimitiveComponents.Mathematical.Asin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 620, "y1": 250, "x2": 720, "y2": 360, "rot": 0}
      }
    }
  }
  acos = PrimitiveComponents.Mathematical.Acos() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 630, "y1": 450, "x2": 730, "y2": 550, "rot": 0}
      }
    }
  }
  atan = PrimitiveComponents.Mathematical.Atan() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 630, "y1": 640, "x2": 730, "y2": 740, "rot": 0}
      }
    }
  }
  sine = BlockComponents.Sine(start_time = 2, amplitude = 1.0, frequency = 0.2) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 270, "y1": 450, "x2": 370, "y2": 550, "rot": 0}
      }
    }
  }
relations
  connect(asin.u, sine.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 495, "y": 305}, {"x": 495, "y": 500}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(acos.u, sine.y) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(atan.u, sine.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 500, "y": 690}, {"x": 500, "y": 500}], "E": 2}],
      "renderStyle": "standard"
    }
  }
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_InverseTrigonometric
  asin = PrimitiveComponents.Mathematical.Asin() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 620, "y1": 250, "x2": 720, "y2": 360, "rot": 0}
      }
    }
  }
  acos = PrimitiveComponents.Mathematical.Acos() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 630, "y1": 450, "x2": 730, "y2": 550, "rot": 0}
      }
    }
  }
  atan = PrimitiveComponents.Mathematical.Atan() {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 630, "y1": 640, "x2": 730, "y2": 740, "rot": 0}
      }
    }
  }
  sine = BlockComponents.Sine(start_time = 2, amplitude = 1.0, frequency = 0.2) {
    "Dyad": {
      "placement": {
        "diagram": {"iconName": "default", "x1": 270, "y1": 450, "x2": 370, "y2": 550, "rot": 0}
      }
    }
  }
relations
  connect(asin.u, sine.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 495, "y": 305}, {"x": 495, "y": 500}], "E": 2}],
      "renderStyle": "standard"
    }
  }
  connect(acos.u, sine.y) {"Dyad": {"edges": [{"S": 1, "M": [], "E": 2}], "renderStyle": "standard"}}
  connect(atan.u, sine.y) {
    "Dyad": {
      "edges": [{"S": 1, "M": [{"x": 500, "y": 690}, {"x": 500, "y": 500}], "E": 2}],
      "renderStyle": "standard"
    }
  }
metadata {
  "Dyad": {
    "experiments": {},
    "tests": {},
    "labels": [
      {
        "label": "$(instance)",
        "x": 500,
        "y": 1100,
        "rot": 0,
        "layer": "icon",
        "attrs": {}
      }
    ],
    "path": {},
    "doc": {"behavior": true}
  }
}
end


Test Cases

No test cases defined.

  • Examples
  • Experiments
  • Analyses