We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
parse
From the documentation:
julia> parse_sxmath("x' == x & v' == -0.75*v") 2-element Array{Expr,1}: :(x' = x) :(v' = -0.75v)
Assume that the variable is called e1. You get :(v' = -0.75e1), which is then interpreted as -7.5 in later stages.
e1
:(v' = -0.75e1)
-7.5
The problem is with the parse call in the last line:
julia> parse("v' == -0.75*v") :(v' == -0.75v)
This occurs in the Platooning model.
The text was updated successfully, but these errors were encountered:
parse_sxmath
FWIW, SymEngine's convert gets it right:
convert
julia> using SymEngine julia> expr = convert(Basic, "4.5*e1") 4.5*e1 julia> SymEngine.free_symbols(expr) 1-element Array{SymEngine.Basic,1}: e1
Sorry, something went wrong.
No branches or pull requests
From the documentation:
Assume that the variable is called
e1
. You get:(v' = -0.75e1)
, which is then interpreted as-7.5
in later stages.The problem is with the
parse
call in the last line:This occurs in the Platooning model.
The text was updated successfully, but these errors were encountered: