10

Our professor used a special looking square root for complex number notations, which I can't find. It looked like \sqrt was thrown into \mathbb (with a second diagonal line).

Detexify was no help and I can't find any other reference so far. I hope it wasn't his "invention".

Does anyone know, how I can produce such a special looking square root?

Edit: As requested, an image of it from my notes: special looking square root

  • 4
    Could you atleast show us a picture of it? – Raaja Feb 8 at 9:41
  • 2
    Till date I have not seen such a representation anywhere but here ;) however, it may be better to ask it here as well: math.stackexchange.com (such a thing might exist, I dont know) :D. – Raaja Feb 8 at 10:12
  • 2
    Professors don't always realize that what they write on a blackboard, is not always possible using typesetting systems. – daleif Feb 8 at 10:42
  • One can do a hack to have what you want but in this case only. If you want to define the symbol generally, it is very hard and complicated, in my opinion. – user156344 Feb 8 at 11:02
  • 1
    In my opinion there is no need to introduce a special symbol for complex roots -- anyone familiar with complex numbers knows that roots can be calculated of complex numbers as well and that the easiest way is to apply the root to the polar coordinate version of those numbers. – user31729 Feb 8 at 11:14
4

One could argue that this does not fit the OP's description, but since the symbol is non-standard, one can sort of have some flexibility in defining it.

\documentclass{article}
\usepackage{stackengine,mathtools}
\stackMath
\newcommand\ssqrt[2][\relax]{%
  \ifx\relax#1\relax%
    \stackengine{0pt}{\sqrt{\phantom{#2}}}{\mkern3mu\sqrt{#2}}{O}{c}{F}{F}{L}%
  \else%
    \stackengine{0pt}{\sqrt[#1]{\phantom{#2}}}{\mkern3mu\sqrt[\phantom{#1}]{#2}}{O}{c}{F}{F}{L}%    
  \fi%
}
\begin{document}
\[
  \ssqrt{z}\quad\ssqrt[n]{z}
\]

\[
  \ssqrt{\frac{x}{y}}\quad\ssqrt[3]{\frac{x}{y}}
\]
\end{document}

enter image description here

For something more sophisticated, certainly not perfect, and the dimensions of the macro dependent on the font and fontsize,

\documentclass{article}
\usepackage{stackengine,mathtools,trimclip,scalerel}
\stackMath
\newcommand\ssqrt[2][\relax]{\ThisStyle{%
  \ifx\relax#1\relax%
    \setbox0=\hbox{$\SavedStyle\sqrt{\phantom{\cramped{#2}}}$}%
    \def\tmpwd{\dimexpr2.5pt + .18\ht0\relax}% FONT DEPENDENT
    \stackengine{0pt}{%
      \SavedStyle\mkern1.5mu\sqrt{#2}%
    }{%
      \kern\tmpwd\clipbox{\tmpwd{} 2pt 0pt 0pt}{\copy0}%
    }{O}{l}{F}{F}{L}%
  \else%
    \setbox0=\hbox{$\SavedStyle\sqrt[\phantom{#1}]{\phantom{\cramped{#2}}}$}%
    \setbox2=\hbox{$\scriptscriptstyle#1$}%
    \def\tmpwd{\dimexpr+3.2pt +.5\wd2 + .08\ht0\relax}% FONT DEPENDENT
    \stackengine{0pt}{%
      \SavedStyle\mkern1.5mu\sqrt[#1]{#2}%
    }{%
      \kern\tmpwd\clipbox{\tmpwd{} 0pt 0pt 0pt}{\copy0}%
    }{O}{l}{F}{F}{L}%
  \fi%
}}
\begin{document}
\[
  \ssqrt{z}\quad\ssqrt[3]{z}\quad\ssqrt[n]{z^2 + 37}
\]
\[
  \ssqrt{\frac{x}{y}}\quad\ssqrt[3]{\frac{x}{y}}\quad\ssqrt[n]{\frac{x^2 + 37}{y}}
\]
\[\textstyle
  \ssqrt{z}\quad\ssqrt[3]{z}\quad\ssqrt[n]{z^2 + 37}
\]
\[\textstyle
  \ssqrt{\frac{x}{y}}\quad\ssqrt[3]{\frac{x}{y}}\quad\ssqrt[n]{\frac{x^2 + 37}{y}}
\]
\[\scriptstyle
  \ssqrt{z}\quad\ssqrt[3]{z}\quad\ssqrt[n]{z^2 + 37}
\]
\[\scriptstyle
  \ssqrt{\frac{x}{y}}\quad\ssqrt[3]{\frac{x}{y}}\quad\ssqrt[n]{\frac{x^2 + 37}{y}}
\]
\end{document}

enter image description here

  • Great! I'am very happy to see another solution. – Sebastiano Feb 22 at 16:46
2

For fun: A first try with @marmot's nice answer:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{tikzmark,calc}
\newcounter{stuff}
%https://tex.stackexchange.com/questions/461193/floating-point-square-root-symbol
\tikzset{toughtoroot/.style={path picture={\draw
            let \p1=($(path picture bounding box.north west)-(path picture bounding box.south west)$) in ($(path picture bounding box.south west)+(0.4em, -0.1em)$)
            -- ($(path picture bounding box.north)-({0.25em+\x1/10},0)-(0.3em, 0.1em)$);}}}
\begin{document}
$\tikzmarknode[toughtoroot]{1}{\sqrt{a+b}}$
\end{document}

this will give you

enter image description here

Disclaimer: This is far from a mature solution. Work in progress ;-). Note that this only works for this case and not a generalistic one (yet!).

1

I have not used a particular and complicate code. I have added a backslash near the \sqrt.

Here there is the output (more perfect than first my answer):

enter image description here

\documentclass[12pt]{article}
\usepackage{graphicx,amssymb,scalerel}
\begin{document}
\[ \sqrt[n]{{\rotatebox{-4}{  $\mkern-14mu \mathrel{\stretchto{/}{2ex}}$  }}\mkern-6mu z} \]
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.