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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
solve_for
Consider this simple equation:
using Symbolics @variables x y eqs = [x*y ~ 4, x+y~4] Symbolics.solve_for(eqs, [x,y])
Which gives a result but solution is represented with variable y:
y
julia> Symbolics.solve_for(eqs, [x,y]) 2-element Vector{SymbolicUtils.BasicSymbolic{Real}}: 4 / y (4//1) + -4 / y
Symbolics.islinear gives false in this situation, while Symbolics.linear_expansion gives true:
Symbolics.islinear
false
Symbolics.linear_expansion
julia> Symbolics.islinear(x*y, [x, y]) false julia> Symbolics.linear_expansion([x*y~0], [x,y]) (Num[-y 0], Num[0], true)
Versions: Julia: 1.7.3 Symbolics: v5.5.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Consider this simple equation:
Which gives a result but solution is represented with variable
y
:Symbolics.islinear
givesfalse
in this situation, whileSymbolics.linear_expansion
gives true:Versions:
Julia: 1.7.3
Symbolics: v5.5.1
The text was updated successfully, but these errors were encountered: