Can the Assuming function be used with ContourPlot or DensityPlot?FullSimplify used with Assuming giving...

On what did Lego base the appearance of the new Hogwarts minifigs?

Can a person refuse a presidential pardon?

Inventor that creates machine that grabs man from future

Can I become debt free or should I file for bankruptcy? How do I manage my debt and finances?

raspberry pi change directory (cd) command not working with USB drive

Word to be used for "standing with your toes pointing out"

Has the Isbell–Freyd criterion ever been used to check that a category is concretisable?

A Wacky, Wacky Chessboard (That Makes No Sense)

Why do neural networks need so many training examples to perform?

What's a good word to describe a public place that looks like it wouldn't be rough?

How do we edit a novel that's written by several people?

How to use a mathematical expression as xticklable

Is my plan for fixing my water heater leak bad?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Naming things the POV character doesn't know

Using AWS Fargate as web server

Do my Windows system binaries contain sensitive information?

How much time does it take for a broken magnet to recover its poles?

What's the rationale behind the objections to these measures against human trafficking?

Why is my solution for the partial pressures of two different gases incorrect?

Auto Insert date into Notepad

If a druid in Wild Shape swallows a creature whole, then turns back to her normal form, what happens?

Avoiding morning and evening handshakes

Is the theory of the category of topological spaces computable?



Can the Assuming function be used with ContourPlot or DensityPlot?


FullSimplify used with Assuming giving unexpected resultsStochastic Approximation and Simulation using Running MedianFind solutions of equation involving Bessel functionsHow to combine several plots with this special alignment?Synchrotron Radiation and ListDensityPlotIntegration result with incomplete beta functionIntegration of angular distribution along cartesian axisHow to properly plot the singularities of a non-trivial phase profile with DensityPlot?Plotting a switching functionPlotting an implicitly defined function













1












$begingroup$


I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function



$qquad f(x,y) = (x,y)^{p-1}/(alpha + beta,x + gamma,y + delta,x,y)^{p + q}$



Notice $x,y$ are variables, and $alpha,beta,gamma,delta, p,$ and $q$ are constants. I need to set a list of assumptions for constants in the function, but my attempts have been fruitless. Every command yields a graph without an image.



I first tried assigning my function with its assumptions by:



Assuming[
{x > 0, y > 0, p > 0, α > 0, β > 0, γ > 0, δ > 0},
f[x_, y_] :=
(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)]


After the assignment, I tried plotting with ContourPlot and DensityPlot.



I'll provide just the ContourPlot expression below because not much changes across them:



ContourPlot[f[x, y], {x, 0, 200}, {y, 0, 200}]


In regards to the ContourPlot code, I've changed the domain to both larger and smaller numbers to no avail. Neither ContourPlot nor DensityPlot provides an image. I then try the code without assigning the function beforehand, while including ContourPlot within the Assuming command:



Assuming[
{α > 0, β > 0, γ > 0, δ > 0, p > 0},
ContourPlot[(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q), {x, 0, 3}, {y, 0, 3}]]


I know this equation should produce some sort of image since it's simply a type of truncated distribution function. I believe I've narrowed down the issue to one of the following: Mathematica does not allow assumptions to be used with ContourPlot/DensityPlot, the distribution function is too complicated for Mathematica, or my user error is hindering me. My next step is to try creating different plots on the same graph for various pre-determined values of the parameters.



Any help is much appreciated. As previously mentioned, I'm not very experienced with Mathematica, so I'm more than willing to learn something new or help further explain my goals.










share|improve this question









New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$








  • 1




    $begingroup$
    MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
    $endgroup$
    – J. M. is computer-less
    4 hours ago










  • $begingroup$
    That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
    $endgroup$
    – Banks Osborne
    4 hours ago






  • 1




    $begingroup$
    Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
    $endgroup$
    – m_goldberg
    3 hours ago












  • $begingroup$
    Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
    $endgroup$
    – mjw
    3 hours ago










  • $begingroup$
    You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
    $endgroup$
    – mjw
    3 hours ago
















1












$begingroup$


I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function



$qquad f(x,y) = (x,y)^{p-1}/(alpha + beta,x + gamma,y + delta,x,y)^{p + q}$



Notice $x,y$ are variables, and $alpha,beta,gamma,delta, p,$ and $q$ are constants. I need to set a list of assumptions for constants in the function, but my attempts have been fruitless. Every command yields a graph without an image.



I first tried assigning my function with its assumptions by:



Assuming[
{x > 0, y > 0, p > 0, α > 0, β > 0, γ > 0, δ > 0},
f[x_, y_] :=
(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)]


After the assignment, I tried plotting with ContourPlot and DensityPlot.



I'll provide just the ContourPlot expression below because not much changes across them:



ContourPlot[f[x, y], {x, 0, 200}, {y, 0, 200}]


In regards to the ContourPlot code, I've changed the domain to both larger and smaller numbers to no avail. Neither ContourPlot nor DensityPlot provides an image. I then try the code without assigning the function beforehand, while including ContourPlot within the Assuming command:



Assuming[
{α > 0, β > 0, γ > 0, δ > 0, p > 0},
ContourPlot[(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q), {x, 0, 3}, {y, 0, 3}]]


I know this equation should produce some sort of image since it's simply a type of truncated distribution function. I believe I've narrowed down the issue to one of the following: Mathematica does not allow assumptions to be used with ContourPlot/DensityPlot, the distribution function is too complicated for Mathematica, or my user error is hindering me. My next step is to try creating different plots on the same graph for various pre-determined values of the parameters.



Any help is much appreciated. As previously mentioned, I'm not very experienced with Mathematica, so I'm more than willing to learn something new or help further explain my goals.










share|improve this question









New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$








  • 1




    $begingroup$
    MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
    $endgroup$
    – J. M. is computer-less
    4 hours ago










  • $begingroup$
    That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
    $endgroup$
    – Banks Osborne
    4 hours ago






  • 1




    $begingroup$
    Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
    $endgroup$
    – m_goldberg
    3 hours ago












  • $begingroup$
    Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
    $endgroup$
    – mjw
    3 hours ago










  • $begingroup$
    You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
    $endgroup$
    – mjw
    3 hours ago














1












1








1





$begingroup$


I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function



$qquad f(x,y) = (x,y)^{p-1}/(alpha + beta,x + gamma,y + delta,x,y)^{p + q}$



Notice $x,y$ are variables, and $alpha,beta,gamma,delta, p,$ and $q$ are constants. I need to set a list of assumptions for constants in the function, but my attempts have been fruitless. Every command yields a graph without an image.



I first tried assigning my function with its assumptions by:



Assuming[
{x > 0, y > 0, p > 0, α > 0, β > 0, γ > 0, δ > 0},
f[x_, y_] :=
(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)]


After the assignment, I tried plotting with ContourPlot and DensityPlot.



I'll provide just the ContourPlot expression below because not much changes across them:



ContourPlot[f[x, y], {x, 0, 200}, {y, 0, 200}]


In regards to the ContourPlot code, I've changed the domain to both larger and smaller numbers to no avail. Neither ContourPlot nor DensityPlot provides an image. I then try the code without assigning the function beforehand, while including ContourPlot within the Assuming command:



Assuming[
{α > 0, β > 0, γ > 0, δ > 0, p > 0},
ContourPlot[(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q), {x, 0, 3}, {y, 0, 3}]]


I know this equation should produce some sort of image since it's simply a type of truncated distribution function. I believe I've narrowed down the issue to one of the following: Mathematica does not allow assumptions to be used with ContourPlot/DensityPlot, the distribution function is too complicated for Mathematica, or my user error is hindering me. My next step is to try creating different plots on the same graph for various pre-determined values of the parameters.



Any help is much appreciated. As previously mentioned, I'm not very experienced with Mathematica, so I'm more than willing to learn something new or help further explain my goals.










share|improve this question









New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$




I'm new to Mathematica, and for most purposes the program has served me well and been straightforward. However, I'm hitting a snag while trying to create a contour plot for the distribution function



$qquad f(x,y) = (x,y)^{p-1}/(alpha + beta,x + gamma,y + delta,x,y)^{p + q}$



Notice $x,y$ are variables, and $alpha,beta,gamma,delta, p,$ and $q$ are constants. I need to set a list of assumptions for constants in the function, but my attempts have been fruitless. Every command yields a graph without an image.



I first tried assigning my function with its assumptions by:



Assuming[
{x > 0, y > 0, p > 0, α > 0, β > 0, γ > 0, δ > 0},
f[x_, y_] :=
(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)]


After the assignment, I tried plotting with ContourPlot and DensityPlot.



I'll provide just the ContourPlot expression below because not much changes across them:



ContourPlot[f[x, y], {x, 0, 200}, {y, 0, 200}]


In regards to the ContourPlot code, I've changed the domain to both larger and smaller numbers to no avail. Neither ContourPlot nor DensityPlot provides an image. I then try the code without assigning the function beforehand, while including ContourPlot within the Assuming command:



Assuming[
{α > 0, β > 0, γ > 0, δ > 0, p > 0},
ContourPlot[(xy)^(p - 1)/(α + βx + γy + δxy)^(p + q), {x, 0, 3}, {y, 0, 3}]]


I know this equation should produce some sort of image since it's simply a type of truncated distribution function. I believe I've narrowed down the issue to one of the following: Mathematica does not allow assumptions to be used with ContourPlot/DensityPlot, the distribution function is too complicated for Mathematica, or my user error is hindering me. My next step is to try creating different plots on the same graph for various pre-determined values of the parameters.



Any help is much appreciated. As previously mentioned, I'm not very experienced with Mathematica, so I'm more than willing to learn something new or help further explain my goals.







plotting assumptions






share|improve this question









New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago









m_goldberg

87k872197




87k872197






New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 4 hours ago









Banks OsborneBanks Osborne

61




61




New contributor




Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Banks Osborne is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1




    $begingroup$
    MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
    $endgroup$
    – J. M. is computer-less
    4 hours ago










  • $begingroup$
    That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
    $endgroup$
    – Banks Osborne
    4 hours ago






  • 1




    $begingroup$
    Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
    $endgroup$
    – m_goldberg
    3 hours ago












  • $begingroup$
    Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
    $endgroup$
    – mjw
    3 hours ago










  • $begingroup$
    You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
    $endgroup$
    – mjw
    3 hours ago














  • 1




    $begingroup$
    MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
    $endgroup$
    – J. M. is computer-less
    4 hours ago










  • $begingroup$
    That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
    $endgroup$
    – Banks Osborne
    4 hours ago






  • 1




    $begingroup$
    Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
    $endgroup$
    – m_goldberg
    3 hours ago












  • $begingroup$
    Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
    $endgroup$
    – mjw
    3 hours ago










  • $begingroup$
    You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
    $endgroup$
    – mjw
    3 hours ago








1




1




$begingroup$
MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
$endgroup$
– J. M. is computer-less
4 hours ago




$begingroup$
MemberQ[Keys[Options[ContourPlot]], Assumptions] returns False, so you can't use assumptions on ContourPlot[]. Your more pressing problem is that you have neglected to provide concrete values for your parameters, so there really is nothing for the plotter to do. (Also, xy and x y are very different things, which contributes to why you can't plot.)
$endgroup$
– J. M. is computer-less
4 hours ago












$begingroup$
That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
$endgroup$
– Banks Osborne
4 hours ago




$begingroup$
That makes sense. I'll stop trying to use Assumptions with ContourPlot now. I don't know how I didn't catch myself sooner, but I now realize I had typed xy instead of x*y. This actually fixes another, unrelated issue I was having with the code. That said, thank you so much for your help!
$endgroup$
– Banks Osborne
4 hours ago




1




1




$begingroup$
Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
$endgroup$
– m_goldberg
3 hours ago






$begingroup$
Shouldn't (xy)^(p - 1)/(α + βx + γy + δxy)^(p + q)] be (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)] The additional spaces make a big difference.
$endgroup$
– m_goldberg
3 hours ago














$begingroup$
Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
$endgroup$
– mjw
3 hours ago




$begingroup$
Yes, was thinking the same thing, otherwise Mathematica thinks each term is one variable for example xy and not the product of these.
$endgroup$
– mjw
3 hours ago












$begingroup$
You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
$endgroup$
– mjw
3 hours ago




$begingroup$
You also need to set the constants to some values to plot your function. To take a simpler example, to plot Exp[-x^2 / (2 sigma^2)] / (sigma Sqrt[2 pi], you would need to specify sigma.
$endgroup$
– mjw
3 hours ago










2 Answers
2






active

oldest

votes


















3












$begingroup$

As has been said in the comments to your question, because all plotting functions are based on strictly numerical calculations, you must give definite values to all six parameters. If you are in the position where you have no good idea how the function behaves as the parameters vary, you can explore the situation with Manipulate. Here is an example.



f[α_, β_, γ_, δ_, p_, q_][x_, y_] := (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)

With[{ϵ = .0001},
Manipulate[
ContourPlot[f[α, β, γ, δ, p, q][x, y], {x, 0, 2}, {y, 0, 2}],
{α, ϵ, 1, Appearance -> "Labeled"},
{β, ϵ, 1, Appearance -> "Labeled"},
{γ, ϵ, 1, Appearance -> "Labeled"},
{δ, ϵ, 1, Appearance -> "Labeled"},
{p, 1, 4, 1, Appearance -> "Labeled"},
{q, 1, 4, 1, Appearance -> "Labeled"}]]


demo



Note: I have no clue about what comprise good ranges for either the parameters or the variables. I made some simple assumptions about them. You should revise these assumptions to suit your needs.






share|improve this answer











$endgroup$













  • $begingroup$
    It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
    $endgroup$
    – mjw
    1 hour ago










  • $begingroup$
    @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
    $endgroup$
    – J. M. is computer-less
    1 hour ago










  • $begingroup$
    @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
    $endgroup$
    – m_goldberg
    1 hour ago












  • $begingroup$
    @mjw. I use this style more for reasons of clarity than convenience.
    $endgroup$
    – m_goldberg
    1 hour ago










  • $begingroup$
    @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
    $endgroup$
    – mjw
    1 hour ago



















0












$begingroup$

One way is to simply set the constants as variables in your function definition, and then set them to the values you want when you call the function:



f[x_, y_, α_, β_, γ_, δ_, p_, q_] := (x y)^(p -1)/(α + β x + γ y + δ x y)^(p + q);

ContourPlot[f[x, y, 2, 3, 4, 5, .5, .5], {x, 0, 200}, {y, 0, 200}]


enter image description here






share|improve this answer











$endgroup$













    Your Answer





    StackExchange.ifUsing("editor", function () {
    return StackExchange.using("mathjaxEditing", function () {
    StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
    StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
    });
    });
    }, "mathjax-editing");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "387"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Banks Osborne is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192559%2fcan-the-assuming-function-be-used-with-contourplot-or-densityplot%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    As has been said in the comments to your question, because all plotting functions are based on strictly numerical calculations, you must give definite values to all six parameters. If you are in the position where you have no good idea how the function behaves as the parameters vary, you can explore the situation with Manipulate. Here is an example.



    f[α_, β_, γ_, δ_, p_, q_][x_, y_] := (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)

    With[{ϵ = .0001},
    Manipulate[
    ContourPlot[f[α, β, γ, δ, p, q][x, y], {x, 0, 2}, {y, 0, 2}],
    {α, ϵ, 1, Appearance -> "Labeled"},
    {β, ϵ, 1, Appearance -> "Labeled"},
    {γ, ϵ, 1, Appearance -> "Labeled"},
    {δ, ϵ, 1, Appearance -> "Labeled"},
    {p, 1, 4, 1, Appearance -> "Labeled"},
    {q, 1, 4, 1, Appearance -> "Labeled"}]]


    demo



    Note: I have no clue about what comprise good ranges for either the parameters or the variables. I made some simple assumptions about them. You should revise these assumptions to suit your needs.






    share|improve this answer











    $endgroup$













    • $begingroup$
      It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
      $endgroup$
      – mjw
      1 hour ago










    • $begingroup$
      @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
      $endgroup$
      – J. M. is computer-less
      1 hour ago










    • $begingroup$
      @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
      $endgroup$
      – m_goldberg
      1 hour ago












    • $begingroup$
      @mjw. I use this style more for reasons of clarity than convenience.
      $endgroup$
      – m_goldberg
      1 hour ago










    • $begingroup$
      @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
      $endgroup$
      – mjw
      1 hour ago
















    3












    $begingroup$

    As has been said in the comments to your question, because all plotting functions are based on strictly numerical calculations, you must give definite values to all six parameters. If you are in the position where you have no good idea how the function behaves as the parameters vary, you can explore the situation with Manipulate. Here is an example.



    f[α_, β_, γ_, δ_, p_, q_][x_, y_] := (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)

    With[{ϵ = .0001},
    Manipulate[
    ContourPlot[f[α, β, γ, δ, p, q][x, y], {x, 0, 2}, {y, 0, 2}],
    {α, ϵ, 1, Appearance -> "Labeled"},
    {β, ϵ, 1, Appearance -> "Labeled"},
    {γ, ϵ, 1, Appearance -> "Labeled"},
    {δ, ϵ, 1, Appearance -> "Labeled"},
    {p, 1, 4, 1, Appearance -> "Labeled"},
    {q, 1, 4, 1, Appearance -> "Labeled"}]]


    demo



    Note: I have no clue about what comprise good ranges for either the parameters or the variables. I made some simple assumptions about them. You should revise these assumptions to suit your needs.






    share|improve this answer











    $endgroup$













    • $begingroup$
      It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
      $endgroup$
      – mjw
      1 hour ago










    • $begingroup$
      @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
      $endgroup$
      – J. M. is computer-less
      1 hour ago










    • $begingroup$
      @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
      $endgroup$
      – m_goldberg
      1 hour ago












    • $begingroup$
      @mjw. I use this style more for reasons of clarity than convenience.
      $endgroup$
      – m_goldberg
      1 hour ago










    • $begingroup$
      @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
      $endgroup$
      – mjw
      1 hour ago














    3












    3








    3





    $begingroup$

    As has been said in the comments to your question, because all plotting functions are based on strictly numerical calculations, you must give definite values to all six parameters. If you are in the position where you have no good idea how the function behaves as the parameters vary, you can explore the situation with Manipulate. Here is an example.



    f[α_, β_, γ_, δ_, p_, q_][x_, y_] := (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)

    With[{ϵ = .0001},
    Manipulate[
    ContourPlot[f[α, β, γ, δ, p, q][x, y], {x, 0, 2}, {y, 0, 2}],
    {α, ϵ, 1, Appearance -> "Labeled"},
    {β, ϵ, 1, Appearance -> "Labeled"},
    {γ, ϵ, 1, Appearance -> "Labeled"},
    {δ, ϵ, 1, Appearance -> "Labeled"},
    {p, 1, 4, 1, Appearance -> "Labeled"},
    {q, 1, 4, 1, Appearance -> "Labeled"}]]


    demo



    Note: I have no clue about what comprise good ranges for either the parameters or the variables. I made some simple assumptions about them. You should revise these assumptions to suit your needs.






    share|improve this answer











    $endgroup$



    As has been said in the comments to your question, because all plotting functions are based on strictly numerical calculations, you must give definite values to all six parameters. If you are in the position where you have no good idea how the function behaves as the parameters vary, you can explore the situation with Manipulate. Here is an example.



    f[α_, β_, γ_, δ_, p_, q_][x_, y_] := (x y)^(p - 1)/(α + β x + γ y + δ x y)^(p + q)

    With[{ϵ = .0001},
    Manipulate[
    ContourPlot[f[α, β, γ, δ, p, q][x, y], {x, 0, 2}, {y, 0, 2}],
    {α, ϵ, 1, Appearance -> "Labeled"},
    {β, ϵ, 1, Appearance -> "Labeled"},
    {γ, ϵ, 1, Appearance -> "Labeled"},
    {δ, ϵ, 1, Appearance -> "Labeled"},
    {p, 1, 4, 1, Appearance -> "Labeled"},
    {q, 1, 4, 1, Appearance -> "Labeled"}]]


    demo



    Note: I have no clue about what comprise good ranges for either the parameters or the variables. I made some simple assumptions about them. You should revise these assumptions to suit your needs.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 1 hour ago

























    answered 2 hours ago









    m_goldbergm_goldberg

    87k872197




    87k872197












    • $begingroup$
      It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
      $endgroup$
      – mjw
      1 hour ago










    • $begingroup$
      @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
      $endgroup$
      – J. M. is computer-less
      1 hour ago










    • $begingroup$
      @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
      $endgroup$
      – m_goldberg
      1 hour ago












    • $begingroup$
      @mjw. I use this style more for reasons of clarity than convenience.
      $endgroup$
      – m_goldberg
      1 hour ago










    • $begingroup$
      @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
      $endgroup$
      – mjw
      1 hour ago


















    • $begingroup$
      It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
      $endgroup$
      – mjw
      1 hour ago










    • $begingroup$
      @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
      $endgroup$
      – J. M. is computer-less
      1 hour ago










    • $begingroup$
      @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
      $endgroup$
      – m_goldberg
      1 hour ago












    • $begingroup$
      @mjw. I use this style more for reasons of clarity than convenience.
      $endgroup$
      – m_goldberg
      1 hour ago










    • $begingroup$
      @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
      $endgroup$
      – mjw
      1 hour ago
















    $begingroup$
    It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
    $endgroup$
    – mjw
    1 hour ago




    $begingroup$
    It looks like you separated out the "constants" and the "variables" in your function definition. Is there any significance to that other than convenience of notation? Where is this documented (just did a quick search for defining functions and did not see it)? Thanks!
    $endgroup$
    – mjw
    1 hour ago












    $begingroup$
    @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
    $endgroup$
    – J. M. is computer-less
    1 hour ago




    $begingroup$
    @mjw, this tutorial might be of interest. It is not necessary to separate parameters and variables in this way, but it is definitely convenient.
    $endgroup$
    – J. M. is computer-less
    1 hour ago












    $begingroup$
    @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
    $endgroup$
    – m_goldberg
    1 hour ago






    $begingroup$
    @mjw. It is documented as J.M. points out. A higher level reference which a list of links about topics concerning functions is this one, which included the link given by J.M.
    $endgroup$
    – m_goldberg
    1 hour ago














    $begingroup$
    @mjw. I use this style more for reasons of clarity than convenience.
    $endgroup$
    – m_goldberg
    1 hour ago




    $begingroup$
    @mjw. I use this style more for reasons of clarity than convenience.
    $endgroup$
    – m_goldberg
    1 hour ago












    $begingroup$
    @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
    $endgroup$
    – mjw
    1 hour ago




    $begingroup$
    @J.M. Thank you! So what is f[a_,b_][x_,y_], a function? Or a function of a function? I guess that I understand that now the head of the expression is f[a,b].
    $endgroup$
    – mjw
    1 hour ago











    0












    $begingroup$

    One way is to simply set the constants as variables in your function definition, and then set them to the values you want when you call the function:



    f[x_, y_, α_, β_, γ_, δ_, p_, q_] := (x y)^(p -1)/(α + β x + γ y + δ x y)^(p + q);

    ContourPlot[f[x, y, 2, 3, 4, 5, .5, .5], {x, 0, 200}, {y, 0, 200}]


    enter image description here






    share|improve this answer











    $endgroup$


















      0












      $begingroup$

      One way is to simply set the constants as variables in your function definition, and then set them to the values you want when you call the function:



      f[x_, y_, α_, β_, γ_, δ_, p_, q_] := (x y)^(p -1)/(α + β x + γ y + δ x y)^(p + q);

      ContourPlot[f[x, y, 2, 3, 4, 5, .5, .5], {x, 0, 200}, {y, 0, 200}]


      enter image description here






      share|improve this answer











      $endgroup$
















        0












        0








        0





        $begingroup$

        One way is to simply set the constants as variables in your function definition, and then set them to the values you want when you call the function:



        f[x_, y_, α_, β_, γ_, δ_, p_, q_] := (x y)^(p -1)/(α + β x + γ y + δ x y)^(p + q);

        ContourPlot[f[x, y, 2, 3, 4, 5, .5, .5], {x, 0, 200}, {y, 0, 200}]


        enter image description here






        share|improve this answer











        $endgroup$



        One way is to simply set the constants as variables in your function definition, and then set them to the values you want when you call the function:



        f[x_, y_, α_, β_, γ_, δ_, p_, q_] := (x y)^(p -1)/(α + β x + γ y + δ x y)^(p + q);

        ContourPlot[f[x, y, 2, 3, 4, 5, .5, .5], {x, 0, 200}, {y, 0, 200}]


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 59 mins ago









        m_goldberg

        87k872197




        87k872197










        answered 2 hours ago









        mjwmjw

        3867




        3867






















            Banks Osborne is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Banks Osborne is a new contributor. Be nice, and check out our Code of Conduct.













            Banks Osborne is a new contributor. Be nice, and check out our Code of Conduct.












            Banks Osborne is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Mathematica Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f192559%2fcan-the-assuming-function-be-used-with-contourplot-or-densityplot%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...