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 expression doesn't simplify to zero as it should.
using Symbolics @syms θ ϕ tmp=2*cos(ϕ)^2 * sin(2* θ)+2*sin(ϕ)^2*sin(2*θ) - 2*sin(2*θ); simplify(tmp)
returns 2(cos(ϕ)^2)*sin(2θ) + 2(sin(ϕ)^2)*sin(2θ) - 2sin(2θ)
The same expression without the constant factors does simplify correctly though.
tmp2=cos(ϕ)^2 * sin(2* θ)+sin(ϕ)^2*sin(2*θ) - sin(2*θ) simplify(tmp2)
The text was updated successfully, but these errors were encountered:
Solved in new version.
julia> using Symbolics julia> @variables θ ϕ 2-element Vector{Num}: θ ϕ julia> tmp=2*cos(ϕ)^2 * sin(2* θ)+2*sin(ϕ)^2*sin(2*θ) - 2*sin(2*θ); julia> simplify(tmp) 0
Sorry, something went wrong.
No branches or pull requests
The following expression doesn't simplify to zero as it should.
returns
2(cos(ϕ)^2)*sin(2θ) + 2(sin(ϕ)^2)*sin(2θ) - 2sin(2θ)
The same expression without the constant factors does simplify correctly though.
The text was updated successfully, but these errors were encountered: