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$
0

1 Answer 1

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 and acknowledge you have read our privacy policy.

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