Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Representation of AND & between symbolic vars #1070

Closed
baggepinnen opened this issue Feb 23, 2024 · 1 comment
Closed

Representation of AND & between symbolic vars #1070

baggepinnen opened this issue Feb 23, 2024 · 1 comment
Assignees

Comments

@baggepinnen
Copy link
Collaborator

baggepinnen commented Feb 23, 2024

@variables t fault(t)
fault & timeInState() >= 1
ERROR: MethodError: no method matching &(::SymbolicUtils.BasicSymbolic{Real}, ::SymbolicUtils.BasicSymbolic{Real})

Closest candidates are:
  &(::Any, ::Any, ::Any, ::Any...)
   @ Base operators.jl:587

Stacktrace:
 [1] &(a::Num, b::Num)
   @ Symbolics ~/.julia/packages/Symbolics/7PRmF/src/num.jl:134
 [2] top-level scope
   @ REPL[40]:1

The same problem appears for |

@baggepinnen baggepinnen changed the title Representation of AND & Representation of AND & between symbolic vars Feb 23, 2024
@baggepinnen
Copy link
Collaborator Author

@variables t fault(t)::Bool

julia> fault & (timeInState() >= 1)
fault(t) & (timeInState() >= 1)

with the correct symtype and parenthesis it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants