How to Equate Two Solutions in Mathematica for Variable J?

  • Thread starter Thread starter BustedBreaks
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
To equate two solutions in Mathematica for variable J, first solve each equation for A using the Solve function. The results will yield expressions for A in terms of other variables. To find J, instead of equating the two results manually, use the Solve function on a list of both equations simultaneously. This approach will automatically find a consistent solution for A and solve for J in one step. This method simplifies the process and ensures that both equations are satisfied.
BustedBreaks
Messages
62
Reaction score
0
hi, I have two equations that I have used the Solve function in Mathematica to solve for A in both equations

What I am having trouble with is trying to equate the results and solving for another variable J automatically

Basically this is what I want to do:

Solve[Eqn1, A]

It gives {{A -> blah1}}

Solve[Eqn2, A]

It gives {{A -> blah2}}

Then

Solve[blah1=blah2, J]
It gives J -> blah3

automatically.THANKS!
 
Physics news on Phys.org
It will simultaneously solve for A consistent with both equations if you just input: Solve[{Eq1, Eq2},A].
 
Back
Top