You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code shall produce a syntax error because (sin, cos) shouldn't be enclosed by parentheses. But the line number in the error reported is incorrect (1 is reported instead of 3).
node main(x,y:real) returns(sin,cos:real)
let
(sin, cos) = (1, 0) -> sincos(x);
tel
node sincos(omega:real) returns (sin, cos: real)
let
sin = omega * integrator(cos, 0.1, 0.0);
cos = omega * integrator(0.0 -> -pre(sin), 0.1, 1.0);
tel
The text was updated successfully, but these errors were encountered:
The following code shall produce a syntax error because
(sin, cos)
shouldn't be enclosed by parentheses. But the line number in the error reported is incorrect (1 is reported instead of 3).The text was updated successfully, but these errors were encountered: