Too much spacing in f(x)?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












When I enter f(x) in Mathematica, the f(x) appears as f (x). There's too much space between f and (x). How do I enter f(x)? For eg) ab appears normal in Mathematica but when I enter f(x) there's extra space between f and (x).







share|improve this question


















  • 3




    Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
    – JimB
    Aug 23 at 4:30










  • I'm practicing maths on my computer so the symbols need to be same.
    – user2134128
    Aug 23 at 4:33






  • 8




    If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
    – eyorble
    Aug 23 at 4:48










  • The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
    – Jens
    Aug 23 at 6:04







  • 1




    Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
    – user202729
    Aug 23 at 8:58














up vote
1
down vote

favorite












When I enter f(x) in Mathematica, the f(x) appears as f (x). There's too much space between f and (x). How do I enter f(x)? For eg) ab appears normal in Mathematica but when I enter f(x) there's extra space between f and (x).







share|improve this question


















  • 3




    Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
    – JimB
    Aug 23 at 4:30










  • I'm practicing maths on my computer so the symbols need to be same.
    – user2134128
    Aug 23 at 4:33






  • 8




    If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
    – eyorble
    Aug 23 at 4:48










  • The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
    – Jens
    Aug 23 at 6:04







  • 1




    Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
    – user202729
    Aug 23 at 8:58












up vote
1
down vote

favorite









up vote
1
down vote

favorite











When I enter f(x) in Mathematica, the f(x) appears as f (x). There's too much space between f and (x). How do I enter f(x)? For eg) ab appears normal in Mathematica but when I enter f(x) there's extra space between f and (x).







share|improve this question














When I enter f(x) in Mathematica, the f(x) appears as f (x). There's too much space between f and (x). How do I enter f(x)? For eg) ab appears normal in Mathematica but when I enter f(x) there's extra space between f and (x).









share|improve this question













share|improve this question




share|improve this question








edited Aug 23 at 5:24









David G. Stork

21.3k11646




21.3k11646










asked Aug 23 at 4:25









user2134128

163




163







  • 3




    Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
    – JimB
    Aug 23 at 4:30










  • I'm practicing maths on my computer so the symbols need to be same.
    – user2134128
    Aug 23 at 4:33






  • 8




    If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
    – eyorble
    Aug 23 at 4:48










  • The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
    – Jens
    Aug 23 at 6:04







  • 1




    Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
    – user202729
    Aug 23 at 8:58












  • 3




    Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
    – JimB
    Aug 23 at 4:30










  • I'm practicing maths on my computer so the symbols need to be same.
    – user2134128
    Aug 23 at 4:33






  • 8




    If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
    – eyorble
    Aug 23 at 4:48










  • The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
    – Jens
    Aug 23 at 6:04







  • 1




    Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
    – user202729
    Aug 23 at 8:58







3




3




Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
– JimB
Aug 23 at 4:30




Mathematica uses square brackets instead of parentheses for functions. Try f[x] rather than f(x).
– JimB
Aug 23 at 4:30












I'm practicing maths on my computer so the symbols need to be same.
– user2134128
Aug 23 at 4:33




I'm practicing maths on my computer so the symbols need to be same.
– user2134128
Aug 23 at 4:33




8




8




If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
– eyorble
Aug 23 at 4:48




If you're practicing formatting mathematical statements, Mathematica may not be the best tool for that. Maybe try LaTeX or a similar system, such as LibreOffice's mathematical formula editor. Mathematica needs to adhere to certain conventions to be usable as a language, and one of these conventions is that functions are written f[x]. This is because Mathematica allows and intends for f(x) to be interpreted as f * x, which is where the extra space comes from.
– eyorble
Aug 23 at 4:48












The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
– Jens
Aug 23 at 6:04





The spacing will be fine as long as you make sure you're entering the expression in TraditionalForm. You can do this in an ordinary input cell by following the steps I described in this answer. But you have to distinguish between input cells and mathematical typesetting. If you want solely the latter, it would be better to choose an appropriate cell style from the Format menu first.
– Jens
Aug 23 at 6:04





1




1




Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
– user202729
Aug 23 at 8:58




Do note that ab in Mathematica is interpreted as a single symbol, not $atimes b$.
– user202729
Aug 23 at 8:58










1 Answer
1






active

oldest

votes

















up vote
11
down vote













You can use f(x) in Mathematica. These are the steps. Open preferences, and look for CommonDefaultFormatTypes then change the Input and Output to TraditionalFormat, like this



Mathematica graphics



Mathematica graphics



Mathematica graphics



Now you can write



 Plot(sin(x),x,-Pi,Pi)


and



f(x_) := x^2;
Plot(f(x), x, 0, 2)


and it work



Mathematica graphics



You'll get this message from Mathematica first time



Mathematica graphics



You can click Always so it do not show again.



I would not use this method as it can cause problems as the message above says, but it is something you can try if you want to enter math as traditional format.






share|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: "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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f180480%2ftoo-much-spacing-in-fx%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    11
    down vote













    You can use f(x) in Mathematica. These are the steps. Open preferences, and look for CommonDefaultFormatTypes then change the Input and Output to TraditionalFormat, like this



    Mathematica graphics



    Mathematica graphics



    Mathematica graphics



    Now you can write



     Plot(sin(x),x,-Pi,Pi)


    and



    f(x_) := x^2;
    Plot(f(x), x, 0, 2)


    and it work



    Mathematica graphics



    You'll get this message from Mathematica first time



    Mathematica graphics



    You can click Always so it do not show again.



    I would not use this method as it can cause problems as the message above says, but it is something you can try if you want to enter math as traditional format.






    share|improve this answer
























      up vote
      11
      down vote













      You can use f(x) in Mathematica. These are the steps. Open preferences, and look for CommonDefaultFormatTypes then change the Input and Output to TraditionalFormat, like this



      Mathematica graphics



      Mathematica graphics



      Mathematica graphics



      Now you can write



       Plot(sin(x),x,-Pi,Pi)


      and



      f(x_) := x^2;
      Plot(f(x), x, 0, 2)


      and it work



      Mathematica graphics



      You'll get this message from Mathematica first time



      Mathematica graphics



      You can click Always so it do not show again.



      I would not use this method as it can cause problems as the message above says, but it is something you can try if you want to enter math as traditional format.






      share|improve this answer






















        up vote
        11
        down vote










        up vote
        11
        down vote









        You can use f(x) in Mathematica. These are the steps. Open preferences, and look for CommonDefaultFormatTypes then change the Input and Output to TraditionalFormat, like this



        Mathematica graphics



        Mathematica graphics



        Mathematica graphics



        Now you can write



         Plot(sin(x),x,-Pi,Pi)


        and



        f(x_) := x^2;
        Plot(f(x), x, 0, 2)


        and it work



        Mathematica graphics



        You'll get this message from Mathematica first time



        Mathematica graphics



        You can click Always so it do not show again.



        I would not use this method as it can cause problems as the message above says, but it is something you can try if you want to enter math as traditional format.






        share|improve this answer












        You can use f(x) in Mathematica. These are the steps. Open preferences, and look for CommonDefaultFormatTypes then change the Input and Output to TraditionalFormat, like this



        Mathematica graphics



        Mathematica graphics



        Mathematica graphics



        Now you can write



         Plot(sin(x),x,-Pi,Pi)


        and



        f(x_) := x^2;
        Plot(f(x), x, 0, 2)


        and it work



        Mathematica graphics



        You'll get this message from Mathematica first time



        Mathematica graphics



        You can click Always so it do not show again.



        I would not use this method as it can cause problems as the message above says, but it is something you can try if you want to enter math as traditional format.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 23 at 4:53









        Nasser

        56.6k485203




        56.6k485203



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f180480%2ftoo-much-spacing-in-fx%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke