Solving equations in SageMath
Hey! I'm new to sage and I'm trying to see how complex are the calculations that I can express in SageMath. So I considered the following example, the comparison between the likelihood of two normals with different means but same variance:
1σ√2πexp(−(x−μ1)22σ2)=1σ√2πexp(−(x−μ2)22σ2)
I know that the answer must be μ1=μ2. Can I solve it with SageMath? I tried:
x, mu1, mu2, sigma = var('x, mu1, mu2, sigma')
exp((0.5/sigma)*(x-mu1)^2)==exp((0.5/sigma)*(x-mu2)^2)
and
solve(exp((0.5/sigma)*(x-mu1)^2)==exp((0.5/sigma)*(x-mu2)^2))
but that doesn't seem to work. Is it possible to do so in sagemath? Thanks!!