How to draw this function?












0














I have a problem where I am given this function:



$z(x, y) = cos(x)cos(y)^{T}$



and now I am supposed to determine if a point is above or below this plane. But I am having trouble understanding what this plane actually looks like, so I am not sure how to solve the problem of the point position. Online plotting tools did not help, they don't give me any plot for this function. Also I am not sure if this $T$ does anything to $cos(y)$. So if anyone could explain this a bit, I would really appreciate it.










share|cite|improve this question
























  • Where did you get this problem & function from?
    – John Omielan
    Dec 26 '18 at 20:46










  • Where does the $T$ come from?
    – saulspatz
    Dec 26 '18 at 20:47










  • @saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
    – ivana14
    Dec 26 '18 at 20:49






  • 1




    The transpose doesn't do anything to a real number, so you can ignore it.
    – saulspatz
    Dec 26 '18 at 20:49










  • @JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
    – ivana14
    Dec 26 '18 at 20:50
















0














I have a problem where I am given this function:



$z(x, y) = cos(x)cos(y)^{T}$



and now I am supposed to determine if a point is above or below this plane. But I am having trouble understanding what this plane actually looks like, so I am not sure how to solve the problem of the point position. Online plotting tools did not help, they don't give me any plot for this function. Also I am not sure if this $T$ does anything to $cos(y)$. So if anyone could explain this a bit, I would really appreciate it.










share|cite|improve this question
























  • Where did you get this problem & function from?
    – John Omielan
    Dec 26 '18 at 20:46










  • Where does the $T$ come from?
    – saulspatz
    Dec 26 '18 at 20:47










  • @saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
    – ivana14
    Dec 26 '18 at 20:49






  • 1




    The transpose doesn't do anything to a real number, so you can ignore it.
    – saulspatz
    Dec 26 '18 at 20:49










  • @JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
    – ivana14
    Dec 26 '18 at 20:50














0












0








0







I have a problem where I am given this function:



$z(x, y) = cos(x)cos(y)^{T}$



and now I am supposed to determine if a point is above or below this plane. But I am having trouble understanding what this plane actually looks like, so I am not sure how to solve the problem of the point position. Online plotting tools did not help, they don't give me any plot for this function. Also I am not sure if this $T$ does anything to $cos(y)$. So if anyone could explain this a bit, I would really appreciate it.










share|cite|improve this question















I have a problem where I am given this function:



$z(x, y) = cos(x)cos(y)^{T}$



and now I am supposed to determine if a point is above or below this plane. But I am having trouble understanding what this plane actually looks like, so I am not sure how to solve the problem of the point position. Online plotting tools did not help, they don't give me any plot for this function. Also I am not sure if this $T$ does anything to $cos(y)$. So if anyone could explain this a bit, I would really appreciate it.







functions trigonometry graphing-functions plane-geometry






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 26 '18 at 21:26









Bernard

118k639112




118k639112










asked Dec 26 '18 at 20:44









ivana14

425312




425312












  • Where did you get this problem & function from?
    – John Omielan
    Dec 26 '18 at 20:46










  • Where does the $T$ come from?
    – saulspatz
    Dec 26 '18 at 20:47










  • @saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
    – ivana14
    Dec 26 '18 at 20:49






  • 1




    The transpose doesn't do anything to a real number, so you can ignore it.
    – saulspatz
    Dec 26 '18 at 20:49










  • @JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
    – ivana14
    Dec 26 '18 at 20:50


















  • Where did you get this problem & function from?
    – John Omielan
    Dec 26 '18 at 20:46










  • Where does the $T$ come from?
    – saulspatz
    Dec 26 '18 at 20:47










  • @saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
    – ivana14
    Dec 26 '18 at 20:49






  • 1




    The transpose doesn't do anything to a real number, so you can ignore it.
    – saulspatz
    Dec 26 '18 at 20:49










  • @JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
    – ivana14
    Dec 26 '18 at 20:50
















Where did you get this problem & function from?
– John Omielan
Dec 26 '18 at 20:46




Where did you get this problem & function from?
– John Omielan
Dec 26 '18 at 20:46












Where does the $T$ come from?
– saulspatz
Dec 26 '18 at 20:47




Where does the $T$ come from?
– saulspatz
Dec 26 '18 at 20:47












@saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
– ivana14
Dec 26 '18 at 20:49




@saulspatz I thing that it means transpose, since we used that notation for matrices before, but I am not sure how to apply that here.
– ivana14
Dec 26 '18 at 20:49




1




1




The transpose doesn't do anything to a real number, so you can ignore it.
– saulspatz
Dec 26 '18 at 20:49




The transpose doesn't do anything to a real number, so you can ignore it.
– saulspatz
Dec 26 '18 at 20:49












@JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
– ivana14
Dec 26 '18 at 20:50




@JohnOmielan I am taking an AI class, and they have given us a problem to create a neural network that will learn how to classify points based on their position in regards to the plane of this function
– ivana14
Dec 26 '18 at 20:50










2 Answers
2






active

oldest

votes


















1














This function forms a surface where a given point $left(x, y, zright)$ is "above" if the provided $z$ value is greater than your function value, i.e., $zleft(x,yright) = cosleft(xright)cosleft(yright)^T$, or "below" if it's less. In some very rare cases, the $z$ value may match exactly (due to computers of course having a limited accuracy for real number calculations), so you can decide how to classify those points.



As for what the surface looks like, there are many packages available to draw it for you, or you can even just simply try plugging in a few values yourself to get a feel for it. Also, as mentioned in the comments, the values have a $2 pi$ period due to the use of $cos$, so the surface will repeat itself every $2 pi$ units in both the $x$ and $y$ directions.



As for setting up the neural network, that obviously is something which this forum is not an appropriate place to discuss. Good luck with doing that.






share|cite|improve this answer





















  • Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
    – ivana14
    Dec 26 '18 at 21:11










  • @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
    – John Omielan
    Dec 26 '18 at 21:14





















1














Take a look at the following "eggbox" representation of surface with equation :



$$z=cos(x)cos(y)$$



(no need for the transposition) with its associated level sets, of primary importance for the question you are asked.



Note that "peaks" are red and "pits" are blue, and that the same color convention is valid for level sets.



enter image description here



A way to understand this surface : If you fix for example $x=pi/3$, it means that when you cut this "cake" at this abscissa, as $cos(pi/3)=1/2$, the profile of the cut is a sine curve with equation $z=frac12 cos(y)$.






share|cite|improve this answer





















    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: "69"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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
    },
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3053300%2fhow-to-draw-this-function%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









    1














    This function forms a surface where a given point $left(x, y, zright)$ is "above" if the provided $z$ value is greater than your function value, i.e., $zleft(x,yright) = cosleft(xright)cosleft(yright)^T$, or "below" if it's less. In some very rare cases, the $z$ value may match exactly (due to computers of course having a limited accuracy for real number calculations), so you can decide how to classify those points.



    As for what the surface looks like, there are many packages available to draw it for you, or you can even just simply try plugging in a few values yourself to get a feel for it. Also, as mentioned in the comments, the values have a $2 pi$ period due to the use of $cos$, so the surface will repeat itself every $2 pi$ units in both the $x$ and $y$ directions.



    As for setting up the neural network, that obviously is something which this forum is not an appropriate place to discuss. Good luck with doing that.






    share|cite|improve this answer





















    • Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
      – ivana14
      Dec 26 '18 at 21:11










    • @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
      – John Omielan
      Dec 26 '18 at 21:14


















    1














    This function forms a surface where a given point $left(x, y, zright)$ is "above" if the provided $z$ value is greater than your function value, i.e., $zleft(x,yright) = cosleft(xright)cosleft(yright)^T$, or "below" if it's less. In some very rare cases, the $z$ value may match exactly (due to computers of course having a limited accuracy for real number calculations), so you can decide how to classify those points.



    As for what the surface looks like, there are many packages available to draw it for you, or you can even just simply try plugging in a few values yourself to get a feel for it. Also, as mentioned in the comments, the values have a $2 pi$ period due to the use of $cos$, so the surface will repeat itself every $2 pi$ units in both the $x$ and $y$ directions.



    As for setting up the neural network, that obviously is something which this forum is not an appropriate place to discuss. Good luck with doing that.






    share|cite|improve this answer





















    • Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
      – ivana14
      Dec 26 '18 at 21:11










    • @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
      – John Omielan
      Dec 26 '18 at 21:14
















    1












    1








    1






    This function forms a surface where a given point $left(x, y, zright)$ is "above" if the provided $z$ value is greater than your function value, i.e., $zleft(x,yright) = cosleft(xright)cosleft(yright)^T$, or "below" if it's less. In some very rare cases, the $z$ value may match exactly (due to computers of course having a limited accuracy for real number calculations), so you can decide how to classify those points.



    As for what the surface looks like, there are many packages available to draw it for you, or you can even just simply try plugging in a few values yourself to get a feel for it. Also, as mentioned in the comments, the values have a $2 pi$ period due to the use of $cos$, so the surface will repeat itself every $2 pi$ units in both the $x$ and $y$ directions.



    As for setting up the neural network, that obviously is something which this forum is not an appropriate place to discuss. Good luck with doing that.






    share|cite|improve this answer












    This function forms a surface where a given point $left(x, y, zright)$ is "above" if the provided $z$ value is greater than your function value, i.e., $zleft(x,yright) = cosleft(xright)cosleft(yright)^T$, or "below" if it's less. In some very rare cases, the $z$ value may match exactly (due to computers of course having a limited accuracy for real number calculations), so you can decide how to classify those points.



    As for what the surface looks like, there are many packages available to draw it for you, or you can even just simply try plugging in a few values yourself to get a feel for it. Also, as mentioned in the comments, the values have a $2 pi$ period due to the use of $cos$, so the surface will repeat itself every $2 pi$ units in both the $x$ and $y$ directions.



    As for setting up the neural network, that obviously is something which this forum is not an appropriate place to discuss. Good luck with doing that.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Dec 26 '18 at 21:05









    John Omielan

    90418




    90418












    • Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
      – ivana14
      Dec 26 '18 at 21:11










    • @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
      – John Omielan
      Dec 26 '18 at 21:14




















    • Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
      – ivana14
      Dec 26 '18 at 21:11










    • @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
      – John Omielan
      Dec 26 '18 at 21:14


















    Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
    – ivana14
    Dec 26 '18 at 21:11




    Okay, it is a bit more clear to me now. Can you just please explain how I get the value of $z$?
    – ivana14
    Dec 26 '18 at 21:11












    @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
    – John Omielan
    Dec 26 '18 at 21:14






    @ivana14 Note that "$z$" here actually refers to $2$ things. First, each point you are given, as it is in $3$-dimensional space, has a third co-ordinate that is usually called $z$. The surface you are checking the point against has a $z$ co-ordinate as well, determined by your equation of $zleft(x,yright)$ by using the $x$ and $y$, i.e., the first 2 co-ordinates, of the point you are given. I hope this answers your question and makes sense.
    – John Omielan
    Dec 26 '18 at 21:14













    1














    Take a look at the following "eggbox" representation of surface with equation :



    $$z=cos(x)cos(y)$$



    (no need for the transposition) with its associated level sets, of primary importance for the question you are asked.



    Note that "peaks" are red and "pits" are blue, and that the same color convention is valid for level sets.



    enter image description here



    A way to understand this surface : If you fix for example $x=pi/3$, it means that when you cut this "cake" at this abscissa, as $cos(pi/3)=1/2$, the profile of the cut is a sine curve with equation $z=frac12 cos(y)$.






    share|cite|improve this answer


























      1














      Take a look at the following "eggbox" representation of surface with equation :



      $$z=cos(x)cos(y)$$



      (no need for the transposition) with its associated level sets, of primary importance for the question you are asked.



      Note that "peaks" are red and "pits" are blue, and that the same color convention is valid for level sets.



      enter image description here



      A way to understand this surface : If you fix for example $x=pi/3$, it means that when you cut this "cake" at this abscissa, as $cos(pi/3)=1/2$, the profile of the cut is a sine curve with equation $z=frac12 cos(y)$.






      share|cite|improve this answer
























        1












        1








        1






        Take a look at the following "eggbox" representation of surface with equation :



        $$z=cos(x)cos(y)$$



        (no need for the transposition) with its associated level sets, of primary importance for the question you are asked.



        Note that "peaks" are red and "pits" are blue, and that the same color convention is valid for level sets.



        enter image description here



        A way to understand this surface : If you fix for example $x=pi/3$, it means that when you cut this "cake" at this abscissa, as $cos(pi/3)=1/2$, the profile of the cut is a sine curve with equation $z=frac12 cos(y)$.






        share|cite|improve this answer












        Take a look at the following "eggbox" representation of surface with equation :



        $$z=cos(x)cos(y)$$



        (no need for the transposition) with its associated level sets, of primary importance for the question you are asked.



        Note that "peaks" are red and "pits" are blue, and that the same color convention is valid for level sets.



        enter image description here



        A way to understand this surface : If you fix for example $x=pi/3$, it means that when you cut this "cake" at this abscissa, as $cos(pi/3)=1/2$, the profile of the cut is a sine curve with equation $z=frac12 cos(y)$.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Dec 27 '18 at 18:34









        Jean Marie

        28.8k41949




        28.8k41949






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2fmath.stackexchange.com%2fquestions%2f3053300%2fhow-to-draw-this-function%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

            Questions related to Moebius Transform of Characteristic Function of the Primes

            List of scandals in India

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?