Mismatched braces in subscript and superscript

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











up vote
1
down vote

favorite












There is mismatch in the braces when used as subscript or superscript



textit $ R(p_(a ),p_(b ) )=e^(-gamma lVert p_(a) - p_(b) rVert)^2$









share|improve this question























  • Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
    – daleif
    1 hour ago














up vote
1
down vote

favorite












There is mismatch in the braces when used as subscript or superscript



textit $ R(p_(a ),p_(b ) )=e^(-gamma lVert p_(a) - p_(b) rVert)^2$









share|improve this question























  • Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
    – daleif
    1 hour ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











There is mismatch in the braces when used as subscript or superscript



textit $ R(p_(a ),p_(b ) )=e^(-gamma lVert p_(a) - p_(b) rVert)^2$









share|improve this question















There is mismatch in the braces when used as subscript or superscript



textit $ R(p_(a ),p_(b ) )=e^(-gamma lVert p_(a) - p_(b) rVert)^2$






subscripts superscripts






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 54 mins ago









egreg

686k8418283078




686k8418283078










asked 2 hours ago









poorna

313




313











  • Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
    – daleif
    1 hour ago
















  • Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
    – daleif
    1 hour ago















Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
– daleif
1 hour ago




Perhaps you should add an image of this, plus it is always a good idea here to provide a full minimal example not just a sniplet, then others do not have to guess what preamble you're using. Additionally, why the textit what is that for here? Note the aroung the lVert/rVert has no purpose
– daleif
1 hour ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote













There are quite a few issues with your code:



  • The textit wrapper seems wholly unnecessary


  • You seem to be under the impression that the ( and ) symbols perform grouping in TeX. That's not the case. I believe you should write p_a and p_b instead of p_(a) and p_(b). If you must encase a and b in parentheses, you should write p_(a) and p_(b) to indicate to TeX that not just the opening parenthesis needs to be typeset in the subscript position.


  • The outer pair of | symbols would appear to be redundant. The expression they encase is squared; hence, taking the absolute value is not needed, is it?


  • The matching pair of curly braces around lVert ... rVert does not appear to serve a discernible purpose.


  • To make the exponential term more readable, consider writing it as exp ... instead of as e^.... If you don't like the look of curly braces, consider using square brackets.


In short, this how I'd write the full expression:



enter image description here



documentclassarticle
usepackageamsmath % for lVert and rVert macros
begindocument
$ R(p_a,p_b) = exp (-gamma lVert p_a - p_b rVert)^2 $
enddocument





share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    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%2ftex.stackexchange.com%2fquestions%2f453572%2fmismatched-braces-in-subscript-and-superscript%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
    4
    down vote













    There are quite a few issues with your code:



    • The textit wrapper seems wholly unnecessary


    • You seem to be under the impression that the ( and ) symbols perform grouping in TeX. That's not the case. I believe you should write p_a and p_b instead of p_(a) and p_(b). If you must encase a and b in parentheses, you should write p_(a) and p_(b) to indicate to TeX that not just the opening parenthesis needs to be typeset in the subscript position.


    • The outer pair of | symbols would appear to be redundant. The expression they encase is squared; hence, taking the absolute value is not needed, is it?


    • The matching pair of curly braces around lVert ... rVert does not appear to serve a discernible purpose.


    • To make the exponential term more readable, consider writing it as exp ... instead of as e^.... If you don't like the look of curly braces, consider using square brackets.


    In short, this how I'd write the full expression:



    enter image description here



    documentclassarticle
    usepackageamsmath % for lVert and rVert macros
    begindocument
    $ R(p_a,p_b) = exp (-gamma lVert p_a - p_b rVert)^2 $
    enddocument





    share|improve this answer


























      up vote
      4
      down vote













      There are quite a few issues with your code:



      • The textit wrapper seems wholly unnecessary


      • You seem to be under the impression that the ( and ) symbols perform grouping in TeX. That's not the case. I believe you should write p_a and p_b instead of p_(a) and p_(b). If you must encase a and b in parentheses, you should write p_(a) and p_(b) to indicate to TeX that not just the opening parenthesis needs to be typeset in the subscript position.


      • The outer pair of | symbols would appear to be redundant. The expression they encase is squared; hence, taking the absolute value is not needed, is it?


      • The matching pair of curly braces around lVert ... rVert does not appear to serve a discernible purpose.


      • To make the exponential term more readable, consider writing it as exp ... instead of as e^.... If you don't like the look of curly braces, consider using square brackets.


      In short, this how I'd write the full expression:



      enter image description here



      documentclassarticle
      usepackageamsmath % for lVert and rVert macros
      begindocument
      $ R(p_a,p_b) = exp (-gamma lVert p_a - p_b rVert)^2 $
      enddocument





      share|improve this answer
























        up vote
        4
        down vote










        up vote
        4
        down vote









        There are quite a few issues with your code:



        • The textit wrapper seems wholly unnecessary


        • You seem to be under the impression that the ( and ) symbols perform grouping in TeX. That's not the case. I believe you should write p_a and p_b instead of p_(a) and p_(b). If you must encase a and b in parentheses, you should write p_(a) and p_(b) to indicate to TeX that not just the opening parenthesis needs to be typeset in the subscript position.


        • The outer pair of | symbols would appear to be redundant. The expression they encase is squared; hence, taking the absolute value is not needed, is it?


        • The matching pair of curly braces around lVert ... rVert does not appear to serve a discernible purpose.


        • To make the exponential term more readable, consider writing it as exp ... instead of as e^.... If you don't like the look of curly braces, consider using square brackets.


        In short, this how I'd write the full expression:



        enter image description here



        documentclassarticle
        usepackageamsmath % for lVert and rVert macros
        begindocument
        $ R(p_a,p_b) = exp (-gamma lVert p_a - p_b rVert)^2 $
        enddocument





        share|improve this answer














        There are quite a few issues with your code:



        • The textit wrapper seems wholly unnecessary


        • You seem to be under the impression that the ( and ) symbols perform grouping in TeX. That's not the case. I believe you should write p_a and p_b instead of p_(a) and p_(b). If you must encase a and b in parentheses, you should write p_(a) and p_(b) to indicate to TeX that not just the opening parenthesis needs to be typeset in the subscript position.


        • The outer pair of | symbols would appear to be redundant. The expression they encase is squared; hence, taking the absolute value is not needed, is it?


        • The matching pair of curly braces around lVert ... rVert does not appear to serve a discernible purpose.


        • To make the exponential term more readable, consider writing it as exp ... instead of as e^.... If you don't like the look of curly braces, consider using square brackets.


        In short, this how I'd write the full expression:



        enter image description here



        documentclassarticle
        usepackageamsmath % for lVert and rVert macros
        begindocument
        $ R(p_a,p_b) = exp (-gamma lVert p_a - p_b rVert)^2 $
        enddocument






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 1 hour ago

























        answered 1 hour ago









        Mico

        265k30355735




        265k30355735



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f453572%2fmismatched-braces-in-subscript-and-superscript%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            One-line joke