Floating point square root symbol












7















For my numerical analysis class, we use a certain symbol to represent the floating point square root operation (similar to using ominus for floating point subtraction, oplus for floating point addition, etc.). In order to render this in a LaTeX document, I'd need to somehow draw a similarly-sized circle over the "v" part of the square root symbol, but I'm not too familiar with tikz and don't really know how to start working on this.



The most important aspect is making sure the circle has the same size as the one for the oxxxx symbols. How would I go about making this? (And potentially, is there a better, more standard way to denote this operation?)



Picture



This is the best drawing I could make of what I'm looking for



Edit



Added a picture to make what I'm asking for a tiny bit clearer.










share|improve this question

























  • First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

    – John Kormylo
    Nov 21 '18 at 21:16













  • The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

    – Peiffap
    Nov 21 '18 at 21:21











  • do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

    – David Carlisle
    Nov 21 '18 at 21:23











  • @DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

    – Peiffap
    Nov 21 '18 at 21:26






  • 1





    If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

    – GuM
    Nov 21 '18 at 22:25


















7















For my numerical analysis class, we use a certain symbol to represent the floating point square root operation (similar to using ominus for floating point subtraction, oplus for floating point addition, etc.). In order to render this in a LaTeX document, I'd need to somehow draw a similarly-sized circle over the "v" part of the square root symbol, but I'm not too familiar with tikz and don't really know how to start working on this.



The most important aspect is making sure the circle has the same size as the one for the oxxxx symbols. How would I go about making this? (And potentially, is there a better, more standard way to denote this operation?)



Picture



This is the best drawing I could make of what I'm looking for



Edit



Added a picture to make what I'm asking for a tiny bit clearer.










share|improve this question

























  • First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

    – John Kormylo
    Nov 21 '18 at 21:16













  • The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

    – Peiffap
    Nov 21 '18 at 21:21











  • do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

    – David Carlisle
    Nov 21 '18 at 21:23











  • @DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

    – Peiffap
    Nov 21 '18 at 21:26






  • 1





    If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

    – GuM
    Nov 21 '18 at 22:25
















7












7








7


2






For my numerical analysis class, we use a certain symbol to represent the floating point square root operation (similar to using ominus for floating point subtraction, oplus for floating point addition, etc.). In order to render this in a LaTeX document, I'd need to somehow draw a similarly-sized circle over the "v" part of the square root symbol, but I'm not too familiar with tikz and don't really know how to start working on this.



The most important aspect is making sure the circle has the same size as the one for the oxxxx symbols. How would I go about making this? (And potentially, is there a better, more standard way to denote this operation?)



Picture



This is the best drawing I could make of what I'm looking for



Edit



Added a picture to make what I'm asking for a tiny bit clearer.










share|improve this question
















For my numerical analysis class, we use a certain symbol to represent the floating point square root operation (similar to using ominus for floating point subtraction, oplus for floating point addition, etc.). In order to render this in a LaTeX document, I'd need to somehow draw a similarly-sized circle over the "v" part of the square root symbol, but I'm not too familiar with tikz and don't really know how to start working on this.



The most important aspect is making sure the circle has the same size as the one for the oxxxx symbols. How would I go about making this? (And potentially, is there a better, more standard way to denote this operation?)



Picture



This is the best drawing I could make of what I'm looking for



Edit



Added a picture to make what I'm asking for a tiny bit clearer.







tikz-pgf math-mode macros






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 21:24







Peiffap

















asked Nov 21 '18 at 20:34









PeiffapPeiffap

1239




1239













  • First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

    – John Kormylo
    Nov 21 '18 at 21:16













  • The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

    – Peiffap
    Nov 21 '18 at 21:21











  • do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

    – David Carlisle
    Nov 21 '18 at 21:23











  • @DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

    – Peiffap
    Nov 21 '18 at 21:26






  • 1





    If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

    – GuM
    Nov 21 '18 at 22:25





















  • First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

    – John Kormylo
    Nov 21 '18 at 21:16













  • The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

    – Peiffap
    Nov 21 '18 at 21:21











  • do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

    – David Carlisle
    Nov 21 '18 at 21:23











  • @DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

    – Peiffap
    Nov 21 '18 at 21:26






  • 1





    If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

    – GuM
    Nov 21 '18 at 22:25



















First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

– John Kormylo
Nov 21 '18 at 21:16







First, look at the Comprehensive LaTeX Symbol List (ctan.org/pkg/comprehensive?lang=en). Could you scan and post an image as part of your question?

– John Kormylo
Nov 21 '18 at 21:16















The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

– Peiffap
Nov 21 '18 at 21:21





The symbol is not in the Symbol List sadly, I already checked before posting, hence the softer part of my question asking about the more standard notation for this.

– Peiffap
Nov 21 '18 at 21:21













do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

– David Carlisle
Nov 21 '18 at 21:23





do you need it to work like sqrt growing in size and with an extending bar while still having the circle, or simpler case of just needing a fixed

– David Carlisle
Nov 21 '18 at 21:23













@DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

– Peiffap
Nov 21 '18 at 21:26





@DavidCarlisle Ideally, it would work like sqrt, while having the circle grow in a way similar to how the circle gets bigger when going from oplus to bigoplus. The last part, about the circle growing, is purely aesthetic (but would still be greatly appreciated), the bar growing is a requirement.

– Peiffap
Nov 21 '18 at 21:26




1




1





If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

– GuM
Nov 21 '18 at 22:25







If you really want a “custom” root sign that behaves exactly as the original, that is, that grows automatically with the size of the subformula it covers, I think that, all things considered, the simplest solution is to use a virtual font. I haven’t got time to write an answer now, but I can suggest this example of a similar problem which I solved by means of this technique; that answer contain further links that you might find useful.

– GuM
Nov 21 '18 at 22:25












2 Answers
2






active

oldest

votes


















5














This is really just for fun (and because this is tagged TikZ). An attempt to adapt the shape of the circle to the dimensions of the square root. The idea is to use a path picture to find out what the dimensions of the square root are. Luckily tikzmark has the cool feature of detecting the mode we are in, so we do not have to worry about this here.



documentclass{article}
usepackage{tikz}
usetikzlibrary{tikzmark,calc}
newcounter{stuff}
tikzset{oroot/.style={path picture={draw
let p1=($(path picture bounding box.north)-(path picture bounding box.south)$) in (path picture bounding box.west)
arc(180:-180:{0.25em+y1/10} and y1/3);}}}
begin{document}
abc $tikzmarknode[oroot]{1}{sqrt{a+b}}$
[tikzmarknode[oroot]{2}{sqrt{frac{frac{1}{12}}{frac{a}{b}}}}]
end{document}


enter image description here






share|improve this answer































    9














    I can offer this one, but don't try it with big arguments to the square root such as fractions.



    documentclass{article}
    usepackage{amsmath}
    usepackage{graphicx}

    newcommand{fpsqrt}[1]{%
    sqrt[leftroot{-5}uproot{-7}scalebox{0.7}{$bigcirc$}]{mathstrut#1}%
    }

    begin{document}

    [
    fpsqrt{120}
    ]

    end{document}


    enter image description here






    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',
      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
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461193%2ffloating-point-square-root-symbol%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









      5














      This is really just for fun (and because this is tagged TikZ). An attempt to adapt the shape of the circle to the dimensions of the square root. The idea is to use a path picture to find out what the dimensions of the square root are. Luckily tikzmark has the cool feature of detecting the mode we are in, so we do not have to worry about this here.



      documentclass{article}
      usepackage{tikz}
      usetikzlibrary{tikzmark,calc}
      newcounter{stuff}
      tikzset{oroot/.style={path picture={draw
      let p1=($(path picture bounding box.north)-(path picture bounding box.south)$) in (path picture bounding box.west)
      arc(180:-180:{0.25em+y1/10} and y1/3);}}}
      begin{document}
      abc $tikzmarknode[oroot]{1}{sqrt{a+b}}$
      [tikzmarknode[oroot]{2}{sqrt{frac{frac{1}{12}}{frac{a}{b}}}}]
      end{document}


      enter image description here






      share|improve this answer




























        5














        This is really just for fun (and because this is tagged TikZ). An attempt to adapt the shape of the circle to the dimensions of the square root. The idea is to use a path picture to find out what the dimensions of the square root are. Luckily tikzmark has the cool feature of detecting the mode we are in, so we do not have to worry about this here.



        documentclass{article}
        usepackage{tikz}
        usetikzlibrary{tikzmark,calc}
        newcounter{stuff}
        tikzset{oroot/.style={path picture={draw
        let p1=($(path picture bounding box.north)-(path picture bounding box.south)$) in (path picture bounding box.west)
        arc(180:-180:{0.25em+y1/10} and y1/3);}}}
        begin{document}
        abc $tikzmarknode[oroot]{1}{sqrt{a+b}}$
        [tikzmarknode[oroot]{2}{sqrt{frac{frac{1}{12}}{frac{a}{b}}}}]
        end{document}


        enter image description here






        share|improve this answer


























          5












          5








          5







          This is really just for fun (and because this is tagged TikZ). An attempt to adapt the shape of the circle to the dimensions of the square root. The idea is to use a path picture to find out what the dimensions of the square root are. Luckily tikzmark has the cool feature of detecting the mode we are in, so we do not have to worry about this here.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark,calc}
          newcounter{stuff}
          tikzset{oroot/.style={path picture={draw
          let p1=($(path picture bounding box.north)-(path picture bounding box.south)$) in (path picture bounding box.west)
          arc(180:-180:{0.25em+y1/10} and y1/3);}}}
          begin{document}
          abc $tikzmarknode[oroot]{1}{sqrt{a+b}}$
          [tikzmarknode[oroot]{2}{sqrt{frac{frac{1}{12}}{frac{a}{b}}}}]
          end{document}


          enter image description here






          share|improve this answer













          This is really just for fun (and because this is tagged TikZ). An attempt to adapt the shape of the circle to the dimensions of the square root. The idea is to use a path picture to find out what the dimensions of the square root are. Luckily tikzmark has the cool feature of detecting the mode we are in, so we do not have to worry about this here.



          documentclass{article}
          usepackage{tikz}
          usetikzlibrary{tikzmark,calc}
          newcounter{stuff}
          tikzset{oroot/.style={path picture={draw
          let p1=($(path picture bounding box.north)-(path picture bounding box.south)$) in (path picture bounding box.west)
          arc(180:-180:{0.25em+y1/10} and y1/3);}}}
          begin{document}
          abc $tikzmarknode[oroot]{1}{sqrt{a+b}}$
          [tikzmarknode[oroot]{2}{sqrt{frac{frac{1}{12}}{frac{a}{b}}}}]
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 21 '18 at 22:10









          marmotmarmot

          115k5146277




          115k5146277























              9














              I can offer this one, but don't try it with big arguments to the square root such as fractions.



              documentclass{article}
              usepackage{amsmath}
              usepackage{graphicx}

              newcommand{fpsqrt}[1]{%
              sqrt[leftroot{-5}uproot{-7}scalebox{0.7}{$bigcirc$}]{mathstrut#1}%
              }

              begin{document}

              [
              fpsqrt{120}
              ]

              end{document}


              enter image description here






              share|improve this answer






























                9














                I can offer this one, but don't try it with big arguments to the square root such as fractions.



                documentclass{article}
                usepackage{amsmath}
                usepackage{graphicx}

                newcommand{fpsqrt}[1]{%
                sqrt[leftroot{-5}uproot{-7}scalebox{0.7}{$bigcirc$}]{mathstrut#1}%
                }

                begin{document}

                [
                fpsqrt{120}
                ]

                end{document}


                enter image description here






                share|improve this answer




























                  9












                  9








                  9







                  I can offer this one, but don't try it with big arguments to the square root such as fractions.



                  documentclass{article}
                  usepackage{amsmath}
                  usepackage{graphicx}

                  newcommand{fpsqrt}[1]{%
                  sqrt[leftroot{-5}uproot{-7}scalebox{0.7}{$bigcirc$}]{mathstrut#1}%
                  }

                  begin{document}

                  [
                  fpsqrt{120}
                  ]

                  end{document}


                  enter image description here






                  share|improve this answer















                  I can offer this one, but don't try it with big arguments to the square root such as fractions.



                  documentclass{article}
                  usepackage{amsmath}
                  usepackage{graphicx}

                  newcommand{fpsqrt}[1]{%
                  sqrt[leftroot{-5}uproot{-7}scalebox{0.7}{$bigcirc$}]{mathstrut#1}%
                  }

                  begin{document}

                  [
                  fpsqrt{120}
                  ]

                  end{document}


                  enter image description here







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Nov 21 '18 at 21:43

























                  answered Nov 21 '18 at 21:35









                  egregegreg

                  732k8919303253




                  732k8919303253






























                      draft saved

                      draft discarded




















































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


                      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%2ftex.stackexchange.com%2fquestions%2f461193%2ffloating-point-square-root-symbol%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

                      鏡平學校

                      ꓛꓣだゔៀៅຸ໢ທຮ໕໒ ,ໂ'໥໓າ໼ឨឲ៵៭ៈゎゔit''䖳𥁄卿' ☨₤₨こゎもょの;ꜹꟚꞖꞵꟅꞛေၦေɯ,ɨɡ𛃵𛁹ޝ޳ޠ޾,ޤޒޯ޾𫝒𫠁သ𛅤チョ'サノބޘދ𛁐ᶿᶇᶀᶋᶠ㨑㽹⻮ꧬ꧹؍۩وَؠ㇕㇃㇪ ㇦㇋㇋ṜẰᵡᴠ 軌ᵕ搜۳ٰޗޮ޷ސޯ𫖾𫅀ल, ꙭ꙰ꚅꙁꚊꞻꝔ꟠Ꝭㄤﺟޱސꧨꧼ꧴ꧯꧽ꧲ꧯ'⽹⽭⾁⿞⼳⽋២៩ញណើꩯꩤ꩸ꩮᶻᶺᶧᶂ𫳲𫪭𬸄𫵰𬖩𬫣𬊉ၲ𛅬㕦䬺𫝌𫝼,,𫟖𫞽ហៅ஫㆔ాఆఅꙒꚞꙍ,Ꙟ꙱エ ,ポテ,フࢰࢯ𫟠𫞶 𫝤𫟠ﺕﹱﻜﻣ𪵕𪭸𪻆𪾩𫔷ġ,ŧآꞪ꟥,ꞔꝻ♚☹⛵𛀌ꬷꭞȄƁƪƬșƦǙǗdžƝǯǧⱦⱰꓕꓢႋ神 ဴ၀க௭எ௫ឫោ ' េㇷㇴㇼ神ㇸㇲㇽㇴㇼㇻㇸ'ㇸㇿㇸㇹㇰㆣꓚꓤ₡₧ ㄨㄟ㄂ㄖㄎ໗ツڒذ₶।ऩछएोञयूटक़कयँृी,冬'𛅢𛅥ㇱㇵㇶ𥄥𦒽𠣧𠊓𧢖𥞘𩔋цѰㄠſtʯʭɿʆʗʍʩɷɛ,əʏダヵㄐㄘR{gỚṖḺờṠṫảḙḭᴮᵏᴘᵀᵷᵕᴜᴏᵾq﮲ﲿﴽﭙ軌ﰬﶚﶧ﫲Ҝжюїкӈㇴffצּ﬘﭅﬈軌'ffistfflſtffतभफɳɰʊɲʎ𛁱𛁖𛁮𛀉 𛂯𛀞నఋŀŲ 𫟲𫠖𫞺ຆຆ ໹້໕໗ๆทԊꧢꧠ꧰ꓱ⿝⼑ŎḬẃẖỐẅ ,ờỰỈỗﮊDžȩꭏꭎꬻ꭮ꬿꭖꭥꭅ㇭神 ⾈ꓵꓑ⺄㄄ㄪㄙㄅㄇstA۵䞽ॶ𫞑𫝄㇉㇇゜軌𩜛𩳠Jﻺ‚Üမ႕ႌႊၐၸဓၞၞၡ៸wyvtᶎᶪᶹစဎ꣡꣰꣢꣤ٗ؋لㇳㇾㇻㇱ㆐㆔,,㆟Ⱶヤマފ޼ޝަݿݞݠݷݐ',ݘ,ݪݙݵ𬝉𬜁𫝨𫞘くせぉて¼óû×ó£…𛅑הㄙくԗԀ5606神45,神796'𪤻𫞧ꓐ㄁ㄘɥɺꓵꓲ3''7034׉ⱦⱠˆ“𫝋ȍ,ꩲ軌꩷ꩶꩧꩫఞ۔فڱێظペサ神ナᴦᵑ47 9238їﻂ䐊䔉㠸﬎ffiﬣ,לּᴷᴦᵛᵽ,ᴨᵤ ᵸᵥᴗᵈꚏꚉꚟ⻆rtǟƴ𬎎

                      Why https connections are so slow when debugging (stepping over) in Java?