1
$\begingroup$

Given a list of functions

flist = {f[x, y], g[x, y], h[x, y], ...};

I wish to some way apply Solve to flist to obtain

Solve[f[x, y] == g[x, y] == h[x, y] == ..., {x, y}]

Where there may be any number of functions in flist.

$\endgroup$
2
$\begingroup$

You need to change the Head of your list from List to Equal using Apply:

Equal @@ flist
(* Out: f[x, y] == g[x, y] == h[x, y] *)

You can then use this within Solve:

Solve[Equal@@flist, {x, y}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.