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
The following should be zero:
using SymbolicUtils @syms a1::Real a2::Real B12::Real B13::Real B23::Real zero1 = a1*( B12+ 1)*a2 + a2*(-B12*a1 - a1) @show zero1 @show simplify(zero1)
zero1 = a2*(-a1 - (B12*a1)) + a1*a2*(1 + B12) simplify(zero1) = a2*(-a1 - (B12*a1)) + a1*a2*(1 + B12)
The text was updated successfully, but these errors were encountered:
Try simplify(zero1,expand=true).
simplify(zero1,expand=true)
Sorry, something went wrong.
Thanks @david-pl this works for me! Do you know why expand=false is the default?
expand=false
Not in detail, but IIUC using expand=true can be computationally expensive so it should only be used when needed. Hence the default expand=false.
expand=true
No branches or pull requests
The following should be zero:
The text was updated successfully, but these errors were encountered: