Are there functions with a constant output regardless of input, or functions whose input is limited to a...












0












$begingroup$


I was wondering whether a function $y=f(x)$ can be defined such that (1) its value $y$ is always constant, no matter what number substitutes $x$, (2) its argument $x$ is limited to a single number? Examples of such function definitions would be greatly appreciated.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
    $endgroup$
    – Christopher Marley
    Jan 28 at 21:43






  • 1




    $begingroup$
    @ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
    $endgroup$
    – TonyK
    Jan 28 at 21:47
















0












$begingroup$


I was wondering whether a function $y=f(x)$ can be defined such that (1) its value $y$ is always constant, no matter what number substitutes $x$, (2) its argument $x$ is limited to a single number? Examples of such function definitions would be greatly appreciated.










share|cite|improve this question









$endgroup$








  • 1




    $begingroup$
    For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
    $endgroup$
    – Christopher Marley
    Jan 28 at 21:43






  • 1




    $begingroup$
    @ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
    $endgroup$
    – TonyK
    Jan 28 at 21:47














0












0








0





$begingroup$


I was wondering whether a function $y=f(x)$ can be defined such that (1) its value $y$ is always constant, no matter what number substitutes $x$, (2) its argument $x$ is limited to a single number? Examples of such function definitions would be greatly appreciated.










share|cite|improve this question









$endgroup$




I was wondering whether a function $y=f(x)$ can be defined such that (1) its value $y$ is always constant, no matter what number substitutes $x$, (2) its argument $x$ is limited to a single number? Examples of such function definitions would be greatly appreciated.







functions analytic-geometry






share|cite|improve this question













share|cite|improve this question











share|cite|improve this question




share|cite|improve this question










asked Jan 28 at 21:29









bp2017bp2017

1507




1507








  • 1




    $begingroup$
    For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
    $endgroup$
    – Christopher Marley
    Jan 28 at 21:43






  • 1




    $begingroup$
    @ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
    $endgroup$
    – TonyK
    Jan 28 at 21:47














  • 1




    $begingroup$
    For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
    $endgroup$
    – Christopher Marley
    Jan 28 at 21:43






  • 1




    $begingroup$
    @ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
    $endgroup$
    – TonyK
    Jan 28 at 21:47








1




1




$begingroup$
For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
$endgroup$
– Christopher Marley
Jan 28 at 21:43




$begingroup$
For #2, $f(x) = sqrt{-x^2}$, or $f(x) = sin^{-1} (1+|-xcos x|). There are many functions with limited domains, one just has to mess with the function a bit.
$endgroup$
– Christopher Marley
Jan 28 at 21:43




1




1




$begingroup$
@ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
$endgroup$
– TonyK
Jan 28 at 21:47




$begingroup$
@ChristopherMarley: That is an antediluvian notion of function. (And your second example is 'defined' for all $x=(2n+1)pi$.)
$endgroup$
– TonyK
Jan 28 at 21:47










2 Answers
2






active

oldest

votes


















1












$begingroup$

If $X$ and $Y$ are any sets, then a function from $X$ to $Y$ is simply an assignment of an element of $Y$ to each element of $X$. (More formally, it is a subset of the product set $Xtimes Y$ that satisfies certain conditions.)



So...



For (1), we can define for example a function $f:Bbb RrightarrowBbb R$ by $f(x)=99$ for all $xin Bbb R$.



For (2), we can only define such a function if $X$ consists of a single element. Not very useful!






share|cite|improve this answer









$endgroup$













  • $begingroup$
    What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
    $endgroup$
    – bp2017
    Jan 30 at 17:36








  • 1




    $begingroup$
    @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
    $endgroup$
    – TonyK
    Jan 30 at 17:46



















1












$begingroup$

A function is two sets with a mapping between them. Its domain could indeed consist of a single element, much like how its output could also be a single number. Think of the identity function $f:{1} to {1}$ where $f(1)=1$. It clearly satisfies both of the properties you give.






share|cite|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: "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%2f3091413%2fare-there-functions-with-a-constant-output-regardless-of-input-or-functions-who%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












    $begingroup$

    If $X$ and $Y$ are any sets, then a function from $X$ to $Y$ is simply an assignment of an element of $Y$ to each element of $X$. (More formally, it is a subset of the product set $Xtimes Y$ that satisfies certain conditions.)



    So...



    For (1), we can define for example a function $f:Bbb RrightarrowBbb R$ by $f(x)=99$ for all $xin Bbb R$.



    For (2), we can only define such a function if $X$ consists of a single element. Not very useful!






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
      $endgroup$
      – bp2017
      Jan 30 at 17:36








    • 1




      $begingroup$
      @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
      $endgroup$
      – TonyK
      Jan 30 at 17:46
















    1












    $begingroup$

    If $X$ and $Y$ are any sets, then a function from $X$ to $Y$ is simply an assignment of an element of $Y$ to each element of $X$. (More formally, it is a subset of the product set $Xtimes Y$ that satisfies certain conditions.)



    So...



    For (1), we can define for example a function $f:Bbb RrightarrowBbb R$ by $f(x)=99$ for all $xin Bbb R$.



    For (2), we can only define such a function if $X$ consists of a single element. Not very useful!






    share|cite|improve this answer









    $endgroup$













    • $begingroup$
      What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
      $endgroup$
      – bp2017
      Jan 30 at 17:36








    • 1




      $begingroup$
      @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
      $endgroup$
      – TonyK
      Jan 30 at 17:46














    1












    1








    1





    $begingroup$

    If $X$ and $Y$ are any sets, then a function from $X$ to $Y$ is simply an assignment of an element of $Y$ to each element of $X$. (More formally, it is a subset of the product set $Xtimes Y$ that satisfies certain conditions.)



    So...



    For (1), we can define for example a function $f:Bbb RrightarrowBbb R$ by $f(x)=99$ for all $xin Bbb R$.



    For (2), we can only define such a function if $X$ consists of a single element. Not very useful!






    share|cite|improve this answer









    $endgroup$



    If $X$ and $Y$ are any sets, then a function from $X$ to $Y$ is simply an assignment of an element of $Y$ to each element of $X$. (More formally, it is a subset of the product set $Xtimes Y$ that satisfies certain conditions.)



    So...



    For (1), we can define for example a function $f:Bbb RrightarrowBbb R$ by $f(x)=99$ for all $xin Bbb R$.



    For (2), we can only define such a function if $X$ consists of a single element. Not very useful!







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Jan 28 at 21:50









    TonyKTonyK

    43.7k358137




    43.7k358137












    • $begingroup$
      What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
      $endgroup$
      – bp2017
      Jan 30 at 17:36








    • 1




      $begingroup$
      @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
      $endgroup$
      – TonyK
      Jan 30 at 17:46


















    • $begingroup$
      What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
      $endgroup$
      – bp2017
      Jan 30 at 17:36








    • 1




      $begingroup$
      @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
      $endgroup$
      – TonyK
      Jan 30 at 17:46
















    $begingroup$
    What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
    $endgroup$
    – bp2017
    Jan 30 at 17:36






    $begingroup$
    What if equation of the function must have input and output variable, $f(x) = ...x...$ or $y = ...x...$ with $...x...$ standing for expression with $x$ variable (which is input)?
    $endgroup$
    – bp2017
    Jan 30 at 17:36






    1




    1




    $begingroup$
    @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
    $endgroup$
    – TonyK
    Jan 30 at 17:46




    $begingroup$
    @bp2017: that is an obsolete notion of what a function is, and not very useful. See this Wikipedia article for a discussion.
    $endgroup$
    – TonyK
    Jan 30 at 17:46











    1












    $begingroup$

    A function is two sets with a mapping between them. Its domain could indeed consist of a single element, much like how its output could also be a single number. Think of the identity function $f:{1} to {1}$ where $f(1)=1$. It clearly satisfies both of the properties you give.






    share|cite|improve this answer











    $endgroup$


















      1












      $begingroup$

      A function is two sets with a mapping between them. Its domain could indeed consist of a single element, much like how its output could also be a single number. Think of the identity function $f:{1} to {1}$ where $f(1)=1$. It clearly satisfies both of the properties you give.






      share|cite|improve this answer











      $endgroup$
















        1












        1








        1





        $begingroup$

        A function is two sets with a mapping between them. Its domain could indeed consist of a single element, much like how its output could also be a single number. Think of the identity function $f:{1} to {1}$ where $f(1)=1$. It clearly satisfies both of the properties you give.






        share|cite|improve this answer











        $endgroup$



        A function is two sets with a mapping between them. Its domain could indeed consist of a single element, much like how its output could also be a single number. Think of the identity function $f:{1} to {1}$ where $f(1)=1$. It clearly satisfies both of the properties you give.







        share|cite|improve this answer














        share|cite|improve this answer



        share|cite|improve this answer








        edited Jan 28 at 21:42

























        answered Jan 28 at 21:36









        Geneten48Geneten48

        1549




        1549






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3091413%2fare-there-functions-with-a-constant-output-regardless-of-input-or-functions-who%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

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter