# How to input an equation with implicit variables?

Posted 10 years ago
3729 Views
|
2 Replies
|
1 Total Likes
|
 I want to input an equation, to be solved later in combination with many other equations, that reads f(q,t) == g(1/t, 1/q), where f and g are some functions of q and tt to be determined precisely by the other equations.  The problem is, I don't know how to input this equation: if I just use variables f and g and then write something like f/.{t->q, q->t} == g, then the replacement rule evaluates immediately and the equation to be solved becomes f==g, which is not what I want.  How should I input this equation into Mathematica?  Sorry if this question is obvious--I'm a Mathematica novice.
2 Replies
Sort By:
Posted 10 years ago
 Copy of the question and a slightly longer thread in http://community.wolfram.com/groups/-/m/t/209858
Posted 10 years ago
 HelloI believe this may be what you looking for?Functions to be used laterexampleF1[u_, v_] := u Cos[v]exampleF2[u_, v_] := ArcTan[u, v]exampleG1[u_, v_] := (u + v) uexampleG2[u_, v_] := (u - v) Exp[v]Function to create your equation, and example usagemyEquation[f_, g_, q_, t_] := f[q, t] == g[1/t, 1/q]myEquation[exampleF1, exampleG1, q, t]myEquation[exampleF2, exampleG1, q, t]