Open mmikhasenko opened 1 year ago
@variables X[1:2] w Y = substitute.(X, w => -w) Y |> Symbolics.scalarize .|> y->substitute(y, Dict(X[1]=>2w, X[2]=>3w))
gives [2w, 3w], while the correct answer is [-2w, -3w].
[2w, 3w]
[-2w, -3w]
note, that some mathematical operations work well, like Y = 2X, or Y = X .+ 1
Y = 2X
Y = X .+ 1
gives
[2w, 3w]
, while the correct answer is[-2w, -3w]
.note, that some mathematical operations work well, like
Y = 2X
, orY = X .+ 1