Skip to content

parse does not preserve multiplication symbol #20

@schillic

Description

@schillic

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions