0
$\begingroup$

If we have three independent variables , how can I fix the value of one variable and giving the range for two others in the contour plot command? I have mass of one Dark matter particle and then the mass of the other dark matter particle and the portal coupling as a third variable, how can I plot them in Mathematica software?

$\endgroup$
2
  • 1
    $\begingroup$ I believe this question is better suited for StackOverflow as it is more of a programming question and not related to physics per se. $\endgroup$
    – ZaellixA
    Commented Jan 4 at 9:58
  • 1
    $\begingroup$ Welcome to Mathematica StackExchange! Please include Mathematica code for your expression in the question. $\endgroup$
    – Domen
    Commented Jan 4 at 10:13

1 Answer 1

1
$\begingroup$

If I understand your question correctly, you have a function of 3 variables and want to fix the value of one variable and make a plot of the other 2 variables. here is an example:

f[x1_, x2_, x3_] := x1 x2 x3;
Plot3D[f[1, x2, x3], {x2, -1, 1}, {x3, -1, 1}]

enter image description here

$\endgroup$
1
  • $\begingroup$ Works also with ContourPlot as requested... $\endgroup$ Commented Jan 4 at 11:06

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.