Sinh

block Sinh "Output the hyperbolic sine of the input"
    extends Interfaces.SISO;
equation
    y = Modelica.Math.sinh(u);

    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), 
                Text(
                    extent = {
                        {-86, 80}, 
                        {-14, 32}},
                    lineColor = {192, 192, 192},
                    textString = "sinh"), 
                Line(
                    points = {
                        {0, -80}, 
                        {0, 68}},
                    color = {192, 192, 192}), 
                Line(
                    points = {
                        {-90, 0}, 
                        {68, 0}},
                    color = {192, 192, 192}), 
                Line(
                    points = {
                        {-80, -80}, 
                        {-76, -65.4}, 
                        {-71.2, -51.4}, 
                        {-65.5, -38.8}, 
                        {-59.1, -28.1}, 
                        {-51.1, -18.7}, 
                        {-41.4, -11.4}, 
                        {-27.7, -5.5}, 
                        {-4.42, -0.653}, 
                        {24.5, 4.57}, 
                        {39, 10.1}, 
                        {49.4, 17.2}, 
                        {57.5, 25.9}, 
                        {63.9, 35.8}, 
                        {69.5, 47.4}, 
                        {74.4, 60.4}, 
                        {78.4, 73.8}, 
                        {80, 80}},
                    smooth = Smooth.Bezier), 
                Polygon(
                    points = {
                        {90, 0}, 
                        {68, 8}, 
                        {68, -8}, 
                        {90, 0}},
                    lineColor = {192, 192, 192},
                    fillColor = {192, 192, 192},
                    fillPattern = FillPattern.Solid)}),
        Diagram(
            coordinateSystem(
                preserveAspectRatio = true,
                extent = {
                    {-100, -100}, 
                    {100, 100}}),
            graphics = {
                Line(
                    points = {
                        {0, 80}, 
                        {-8, 80}},
                    color = {192, 192, 192}), 
                Line(
                    points = {
                        {0, -80}, 
                        {-8, -80}},
                    color = {192, 192, 192}), 
                Line(
                    points = {
                        {0, -90}, 
                        {0, 84}},
                    color = {192, 192, 192}), 
                Text(
                    extent = {
                        {9, 98}, 
                        {34, 78}},
                    lineColor = {160, 160, 164},
                    textString = "y"), 
                Polygon(
                    points = {
                        {0, 100}, 
                        {-6, 84}, 
                        {6, 84}, 
                        {0, 100}},
                    lineColor = {192, 192, 192},
                    fillColor = {192, 192, 192},
                    fillPattern = FillPattern.Solid), 
                Line(
                    points = {
                        {-100, 0}, 
                        {84, 0}},
                    color = {192, 192, 192}), 
                Polygon(
                    points = {
                        {100, 0}, 
                        {84, 6}, 
                        {84, -6}, 
                        {100, 0}},
                    lineColor = {192, 192, 192},
                    fillColor = {192, 192, 192},
                    fillPattern = FillPattern.Solid), 
                Line(points = {
                    {-80, -80}, 
                    {-76, -65.4}, 
                    {-71.2, -51.4}, 
                    {-65.5, -38.8}, 
                    {-59.1, -28.1}, 
                    {-51.1, -18.7}, 
                    {-41.4, -11.4}, 
                    {-27.7, -5.5}, 
                    {-4.42, -0.653}, 
                    {24.5, 4.57}, 
                    {39, 10.1}, 
                    {49.4, 17.2}, 
                    {57.5, 25.9}, 
                    {63.9, 35.8}, 
                    {69.5, 47.4}, 
                    {74.4, 60.4}, 
                    {78.4, 73.8}, 
                    {80, 80}}), 
                Text(
                    extent = {
                        {-31, 72}, 
                        {-11, 88}},
                    textString = "27",
                    lineColor = {0, 0, 255}), 
                Text(
                    extent = {
                        {-35, -88}, 
                        {-15, -72}},
                    textString = "-27",
                    lineColor = {0, 0, 255}), 
                Text(
                    extent = {
                        {70, 25}, 
                        {90, 5}},
                    textString = "4",
                    lineColor = {0, 0, 255}), 
                Text(
                    extent = {
                        {-98, 21}, 
                        {-78, 1}},
                    textString = "-4",
                    lineColor = {0, 0, 255}), 
                Text(
                    extent = {
                        {72, -6}, 
                        {96, -26}},
                    lineColor = {160, 160, 164},
                    textString = "u")}),
        Documentation(info = "<html>\n<p>\nThis blocks computes the output <strong>y</strong> as the\n<em>hyperbolic sine</em> of the input <strong>u</strong>:\n</p>\n<pre>\n    y = <strong>sinh</strong>( u );\n</pre>\n\n<p>\n<img src=\"modelica://Modelica/Resources/Images/Math/sinh.png\"\n     alt=\"sinh.png\">\n</p>\n\n</html>"));
end Sinh;