Does anyone how can I plot this? I got many errors saying Infinite expression 1/0. I want to plot each one on a separate graph from top to bottom with legend about the values of a, b, c, m, n, p.
f1[a_, b_, c_, d_, m_, n_, p_] := -((m + d (a + b - m - n) + n) /(
c d + p - d p));
Block[{t =
Table[f1[a, b, c, d, m, n,
p], {a, {-1, 0, 1}}, {b, {-1, 0, 1}}, {c, {-1, 0, 1}}, {m, {-1,
0, 1}}, {n, {-1, 0, 1}}, {p, {-1, 0, 1}}]}, Plot[t, {d, 0, 1},PlotLegends ->{"a" = a, "b" = b, "c"=c, "d"=d, "m" = m, "n" =n, "p" = p]]
f1[a_,b_,c_,d_,m_,n_,p_]:=If[(c*d+p-d*p)==0,0,-((m+d(a+b-m-n)+n)/(c*d+p-d*p))]; Table[Print[Plot[f1[a,b,c,d,m,n,p],{d,0,1},PlotLegends->"{a,b,c,m,n,p}="<>ToString[{a,b,c,m,n,p}]]],{a,-1,1},{b,-1,1},{c,-1,1},{m,-1,1},{n,-1,1},{p,-1,1}];
$\endgroup$ – Bill Dec 2 '20 at 20:07