Search code examples
maple

Maple: How having assumptions for variables to be from real range to solve such equasion?


So I have an equation like this:

Im(G[x,x]) = -38/(845*Pi)+ Re(G[x,y])

I need to get G[xy]. How to tell Maple that we are assuming that G[xx], G[xy] are values from real range (So Im(G[xx]) == 0 and Re(G[xy]) == G[xy]) and find G[xy] from Im(solution[1][1])?


Solution

  • Use assume or assuming. In your case:

    solve(Im(G[x,x]) = -38/(845*Pi) + Re(G[x,y]), G[x,y]) assuming G[x,y] :: real, G[x,x] :: real;
    

    would work.