-
Notifications
You must be signed in to change notification settings - Fork 164
/
Cosh.mo
43 lines (41 loc) · 2.02 KB
/
Cosh.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
within Modelica.ComplexBlocks.ComplexMath;
block Cosh "Output the hyperbolic cosine of the input"
extends Interfaces.ComplexSISO;
equation
y = Modelica.ComplexMath.cosh(uInternal);
annotation (
Icon(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{
100,100}}), graphics={Polygon(
points={{0,90},{-8,68},{8,68},{0,90}},
lineColor={192,192,192},
fillColor={192,192,192},
fillPattern=FillPattern.Solid),Line(points={{0,-80},{0,68}},
color={192,192,192}),Text(
extent={{4,66},{66,20}},
textColor={192,192,192},
textString="cosh"),Line(points={{-80,80},{-77.6,61.1},{-74.4,
39.3},{-71.2,20.7},{-67.1,1.29},{-63.1,-14.6},{-58.3,-29.8},{-52.7,
-43.5},{-46.2,-55.1},{-39,-64.3},{-30.2,-71.7},{-18.9,-77.1},{-4.42,
-79.9},{10.9,-79.1},{23.7,-75.2},{34.2,-68.7},{42.2,-60.6},{48.6,
-51.2},{54.3,-40},{59.1,-27.5},{63.1,-14.6},{67.1,1.29},{71.2,
20.7},{74.4,39.3},{77.6,61.1},{80,80}}, color={85,170,255}),
Line(
points={{-90,-86.083},{68,-86.083}}, color={192,192,192}),Polygon(
points={{90,-86.083},{68,-78.083},{68,-94.083},{90,-86.083}},
lineColor={192,192,192},
fillColor={192,192,192},
fillPattern=FillPattern.Solid)}),
Documentation(info="<html>
<p>
This blocks computes the output <code>y</code> as the
<em>hyperbolic cosine</em> of the input <code>u</code>. Optionally, the input <code>u</code> can be processed conjugate complex, when parameter <code>useConjugateInput</code> is <code>true</code>. Depending on <code>useConjugateInput</code> the internal signal <code>uInternal</code> represents either the original or the conjugate complex input signal.
</p>
<blockquote><pre>
y = <strong>cosh</strong>(uInternal);
</pre></blockquote>
<p>
<img src=\"modelica://Modelica/Resources/Images/Math/cosh.png\"
alt=\"cosh.png\">
</p>
</html>"));
end Cosh;