block Exp "Output the exponential (base e) of the input"
extends Interfaces.ComplexSISO;
equation
y = Modelica.ComplexMath.exp(uInternal);
annotation (
Icon(
coordinateSystem(
preserveAspectRatio = true,
extent = {
{-100, -100},
{100, 100}}),
graphics = {
Line(
points = {
{0, -80},
{0, 68}},
color = {192, 192, 192}),
Polygon(
points = {
{0, 90},
{-8, 68},
{8, 68},
{0, 90}},
lineColor = {192, 192, 192},
fillColor = {192, 192, 192},
fillPattern = FillPattern.Solid),
Text(
extent = {
{-86, 50},
{-14, 2}},
textColor = {192, 192, 192},
textString = "exp"),
Line(
points = {
{-80, -80},
{-31, -77.9},
{-6.03, -74},
{10.9, -68.4},
{23.7, -61},
{34.2, -51.6},
{43, -40.3},
{50.3, -27.8},
{56.7, -13.5},
{62.3, 2.23},
{67.1, 18.6},
{72, 38.2},
{76, 57.6},
{80, 80}},
color = {85, 170, 255}),
Line(
points = {
{-90, -80.3976},
{68, -80.3976}},
color = {192, 192, 192}),
Polygon(
points = {
{90, -80.3976},
{68, -72.3976},
{68, -88.3976},
{90, -80.3976}},
lineColor = {192, 192, 192},
fillColor = {192, 192, 192},
fillPattern = FillPattern.Solid)}),
Documentation(info = "<html>\n<p>\nThis blocks computes the output <code>y</code> as the\n<em>exponential</em> (of base e) 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.\n</p>\n<blockquote><pre>\ny = <strong>exp</strong>(uInternal);\n</pre></blockquote>\n\n<p>\n<img src=\"modelica://Modelica/Resources/Images/Math/exp.png\"\n alt=\"exp.png\">\n</p>\n\n</html>"));
end Exp;