Skip to content

Commit

Permalink
Fix syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jun 13, 2023
1 parent ccd8d00 commit cd44fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Blocks/Sources.mo
Expand Up @@ -299,7 +299,7 @@ If parameter duration is set to 0.0, the limiting case of a Step signal is achie
equation
if continuous then
y = offset + amplitude*smooth(1, (if time < startTime then Modelica.Math.sin(phase)
else Modelica.Math.sin(2*pi*f*(time - startTime) + phase));
else Modelica.Math.sin(2*pi*f*(time - startTime) + phase)));
else
y = offset + (if time < startTime then 0 else amplitude*Modelica.Math.sin(2
*pi*f*(time - startTime) + phase));
Expand Down

0 comments on commit cd44fb1

Please sign in to comment.