Questions tagged [sqrt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
3 answers
554 views

How do I write words inside a square root without the words getting italicized?

I wrote $\sqrt{n^{\frac{number of factors of n}{2}}}$ but the "number of factors of n" is getting italicized. Can someone help with this please? Thank you
user avatar
0 votes
0 answers
32 views

Customised radical-sign

I've been trying to customise the shape of radical sign so that it looks slimmer with the left protrusion consuming little space. And this is my attempt: \documentclass{standalone} \makeatletter \...
user avatar
2 votes
2 answers
82 views

Making a (bad) custom sqrt symbol

For puerile personal amusement, I'd like to make a replacement \sqrt macro that typesets the radical/surd symbols appallingly, to match a plotting package with... interesting aesthetics: Is it ...
user avatar
  • 1,038
6 votes
3 answers
170 views

How do I slant the Computer Modern root symbol?

Considering this question, actually I not remember as I must straighten square root symbol to have the classic sqrt symbol. I have used (for example), \def\mySqrt{\radical"0270373\relax} but it ...
user avatar
  • 46.2k
0 votes
0 answers
46 views

Strange overhangs in the roots between mtpro2 and newtxmath

Executing this MWE, \documentclass[a4paper,12pt]{article} \usepackage{newtxtext,newtxmath} \begin{document} $\sqrt{2}$ \end{document} with this output, you can see an overhang, marked with a green ...
user avatar
  • 46.2k
7 votes
3 answers
861 views

Square root of a function "misbehaves" near the x-axis

I'm trying to plot height lines of a function of the form $H(x,y)=y^2+u(x)$, by taking multiple plots of $\pm\sqrt{c-u(x)}$. The problem is that for some values $c$ the domain is tricky and not easily ...
user avatar
  • 265
6 votes
2 answers
227 views

On the strange calculations calling xfp, Tikz, sqrt, and ^2

As we now the square root of (-3)^2+(-4)^2 is the square root of 25 equal to 5. However we got a strange error calling xfp package and Tikz saying: \LaTeX3 error: Invalid operation sqrt(-25) Below is ...
user avatar
  • 1,491
0 votes
2 answers
90 views

I am having difficulty to write this formula in the LaTeX form

I am having difficulty writing this formula in the LaTeX form. I am not familiar with LaTeX. Thanks in advance.
user avatar
  • 11
5 votes
2 answers
285 views

Change sqrt bracket size

This code \begin{equation*} \begin{split} & \sqrt{Var_\nu(f)} \\ & \sqrt{Var_\mu(f)} \end{split} \end{equation*} produces As you can see, the sizes of the brackets ...
user avatar
  • 207
0 votes
1 answer
54 views

close a square root function

I want to make an addition of two square root functions, not one inside another. here is my code: \begin{equation} L=\sqrt{\frac{1}{n} \sum_{i=1}^{n}\left\left\|y_{pred} -y_{true}\right\|_{2}} + ...
user avatar
  • 3
6 votes
2 answers
324 views

Mirrored Cube Rooted Fraction Looks Weird

I was testing something with Overleaf, and then a weird result was output. What's more weird is that I went to a Discord server where a TeX-rendering engine exists. This is its result: It's a really ...
user avatar
2 votes
1 answer
85 views

Slope field for differential equation with cube root: "Missing number, treated as zero"

Since pgfplots doesn't have a "built in" cube root function, I adapted code from this question in order to plot a cube root function in a differential equation slope field. The trick seems ...
user avatar
  • 1,195
10 votes
1 answer
181 views

How can I avoid a "too big sqrt" when using underbrace

Code Sample: \sqrt{\underbrace{\det((D\varphi)^T)}_{\det(D\varphi)} \det(D\varphi)} Produces: The problem: By using the underbrace, it is set in the square root and not under the square root - so ...
user avatar
  • 385
1 vote
2 answers
206 views

Reduce height of sqrt

There are many questions here about increasing the height of the square root (e.g. How to adjust/increase the height of square root?), but I'd like to decrease it. Consider the following code and ...
user avatar
  • 525
7 votes
2 answers
206 views

Underbrace under square root sign plain TeX

$$ \rlap{$\sqrt{\phantom{\displaystyle\pmatrix{A^{-1} b(x)\cr -1}^T \pmatrix{A & b(x) \cr b(x)^T & \Phi(x,x)} \pmatrix{A^{-1} b(x) \cr -1}}}$} \mskip14mu \...
user avatar
  • 2,499
2 votes
0 answers
49 views

pgfplot/tikzpicture declare function error with sqrt(): missing number treated as zero

I am adapting the solution here to plot the slope field for a differential equation. The equation I would like to use is dy/dt = -sqrt(1-y^2). I can get it working for "simple" functions (...
user avatar
  • 131
12 votes
1 answer
883 views

Why is there a space between the left parenthesis and the radical sign?

Minimal working example: \documentclass{article} \begin{document} Default spacing: \((\sqrt 2)\) Negative space after the left parenthesis: \((\!\sqrt 2)\) \end{document} To me, the default spacing ...
user avatar
  • 130
1 vote
3 answers
354 views

index of a /sqrt is complex and produces error

I want to write in latex and an error occurs, if you could help me please \[ F=\left(\sqrt[\sqrt[\sqrt{7}]{7}]{\sqrt[7]{7}^{7^{\frac{\sqrt{7}}{7}}}}\right)^7 \]
user avatar
1 vote
0 answers
99 views

Defect in the square-root symbol in Stack Exchange [closed]

\sqrt{aaa} in Math Stack Exchange yields a square-root symbol with a small gap which is unwanted. The picture attached below will show it clearly. But in overleaf \sqrt{aaa} gives a fine symbol ...
user avatar
4 votes
1 answer
112 views

Default sqrt index to scriptstyle instead of scriptscriptstyle

In my document, I am using a font and size which just makes scriptscriptstyle too small, and it looks weird to me: If instead of \sqrt[3]{...} I write \sqrt[\scriptstyle 3]{...} it looks better: And ...
user avatar
2 votes
2 answers
144 views

Tikz sqrt function not plotting sqrt(0)

I am trying to plot a function involving sqrt but I don't understand why it is not plotting until sqrt(0). The blue curve should reach y=0 at x=8 but it stops before, which does not happen with the ...
user avatar
  • 196
2 votes
1 answer
79 views

Decimal number and \sqrt radical height

I just saw a post on a french Facebook LaTeX group saying this: When using the french decimal separator (comma), the space between the number inside the radical is reduced. The proposed MWE is (...
user avatar
  • 447
0 votes
0 answers
132 views

Polygon division with a square root

I need to write a polygon division using polynom package, but my coefficients have square roots and the package gives me an error. Is it possible to make this division using polynom? \documentclass{...
user avatar
  • 329
0 votes
0 answers
154 views

Is there a command to show the "handmade" square root algorithm?

Is there a command to show the product of two integers or the square root of an integer? I know xlop package does similar for the division algorithm.
user avatar
7 votes
3 answers
492 views

\sqrt too long for one line [duplicate]

I have a very long SQRT() equation, that doesn't fit in a line. I couldn't simplify it, since it involves terms in addition. Is there an alternative way to represent a root as 'SQRT{some function}' ? ...
user avatar
  • 85
0 votes
2 answers
237 views

Too much empty space underneath \sqrt

The following math command $\sqrt{GM/a_p^3}$ produces excessive unnecessary empty space between the argument of the \sqrt and the horizontal line of the sqrt, which in turn makes the containing text ...
user avatar
  • 1,145
1 vote
2 answers
336 views

Height and size of \sqrt exponent [duplicate]

I want to place the n from the \sqrt[n]{\rho} command in a more visible position and make it bigger too. MWE: \sqrt[n]{\rho}
user avatar
  • 305
2 votes
0 answers
5k views

Unable to write nth root [duplicate]

I would like to write the nth root, it's fairly simple as \usepackage{amsmath} \begin{equation} a = \sqrt[n]{b} \end{equation} but I get the output as Can anybody help me with this. ...
user avatar
1 vote
1 answer
46 views

Make roots fit fractions size with nccmath package

Sometimes I use the nccmath package to resize equations, mainly resizing fractions with the \mfraccommand, but I have an issue with roots that contain fractions: \documentclass[11pt]{article} \...
user avatar
0 votes
1 answer
393 views

yhmath impact on radical symbols and delimiters

In November 2014 I had an issue with this code and yhmath package: \sqrt{n+\sqrt{(n-1)+\sqrt{(n-2)+\dotsb+\sqrt{2+\sqrt{1}}}}} Depending on whether that package was being used or not (and AMS-...
user avatar
  • 977
3 votes
3 answers
494 views

Integral with fraction and square root produces wrong vertical alignment

This code produces an ankward vertical alignment which involves the integral symbol and the fraction with the square root at the denominator. Why? How can I fix this? \documentclass[a4paper]{article} ...
user avatar
  • 568
4 votes
2 answers
575 views

Radical with underscript

How can I make the radical end at the same level with 11...1 and 44...4 and put the underbrace below the radical? I have this: \sqrt{ \underbrace{11...1}_n\underbrace{44...4}_{2n}}
user avatar
2 votes
2 answers
176 views

"Esami" package: \randestrai and \sqrt not working together?

The \randestrai command from the "esami" package allows to define a set of elements to randomly choose within, such as a set of formulas. It works with formulas including latex commands inside, for ...
user avatar
6 votes
2 answers
2k views

How to adjust/increase the height of square root?

I defined this equation: \begin{equation} \delta {^s_i\lambda} = \begin{cases} \pm \dfrac{{^s\overline{\Delta T}}}{\sqrt[]{\delta {^s_1\bm{u}_l} \cdot \delta {^s_1\bm{u}_l} + \...
user avatar
4 votes
1 answer
287 views

Badly scaling closing SQRT symbol with large font sizes

I prefer the SQRT symbol with the closing downward tick, and have been using this answer to achieve the desired effect. However, when I hugely increase the font size and use fixcmex to achieve some ...
user avatar
  • 2,407
2 votes
2 answers
1k views

differences when using inline mode and \overline and \sqrt

Can anyone help me make this square root signs in the code below, be of the same size so that they all have the same height? This is the code: \documentclass[]{book} \begin{document} $\overline{\...
user avatar
  • 497
3 votes
2 answers
312 views

Same command \SQRT of MathTımeProfessional fonts (mt2pro[lite]) using baskervald(x)

From the guide MathTımeProfessional fonts mt2pro[lite] we known that in addition to the \sqrt command, which uses an extensible symbol, called \SQRT that produces individually designed root signs up ...
user avatar
  • 46.2k
3 votes
1 answer
185 views

Root index \sqrt[n]{x} misaligned with libertinust1math

I'm porting all my libertine-based documents to use \usepackage{libertinust1math} instead of \usepackage[libertine]{newtxmath} and a side effect seems to be the misalignment of the n-th root symbol: ...
user avatar
2 votes
2 answers
297 views

Round parentheses in math mode when using kpfonts

I am trying to write a simple equation that contains fractions, square roots and parentheses. However the output is ugly I'd say I tried reducing the space on the nominator using a user-defined ...
user avatar
  • 11.9k
12 votes
3 answers
1k views

smash subscript in sum

I found a solution (3rd \sqrt), but am curious as to why the \smash{} in {\sum_{\smash{ij}} (2nd \sqrt) is ignored. Notes: Related Question: Adjust vertical size of \sqrt contating terms with ...
user avatar
3 votes
0 answers
2k views

Square root symbol looking ugly [closed]

Recently I noticed that my square root symbol is looking really ugly: The square root per se is not correctly connected to the overbar. The picture above is with a small zoom factor. When I zoom in ...
user avatar
0 votes
0 answers
1k views

rendering tex: sqrt: placement of root

EDIT: after reading egreg's comment, changing from \sqrt[3]{x} to \root 3 \of{x}, to indicate using plain TeX, not LaTeX Consider $$\sqrt{x}$$ vs $$\root 3 \of{x}$$. The latter has a 'root' of 3. ...
user avatar
  • 165
2 votes
2 answers
1k views

Formula too long and \split fails | contains "sqrt" (square root)

I'm quite new to LaTex and I guess I need some help. I'm writing a report and I need to display a specific formula. If I use the simple equation environment the formula gets too long for one line. ...
user avatar
  • 45
4 votes
1 answer
2k views

Splitting an equation with a long square root

I want to split up a very long equation. Here is my code: \documentclass[11pt,a4paper,oneside,onecolumn,article]{memoir} \usepackage[latin1]{inputenc} \usepackage{mathtools} \usepackage{amsmath} \...
user avatar
1 vote
1 answer
287 views

Bold square root with normal argument

This is a somewhat funny question. To explain the problem of complex extensions of the principal square root, I would like to have two visibly different square root signs within the same document; for ...
user avatar
  • 307
6 votes
1 answer
732 views

Adjust vertical size of \sqrt contating terms with subscript and superscript

In the second \sqrt, both the subscript and superscript are \smashed: a_{\smash{0}}^{\smash{2} Yet, the sqrt are of different sizes? How do I get the second \sqrt to be the exact vertical size of ...
user avatar
1 vote
1 answer
204 views

How to write braces inside \sqrt[ in here ]{sth}? [duplicate]

This is what I want to write: Apparently, the following doesn't work \sqrt[ \sqrt[\log n]{n} ]{x} The error is that the argument of \sqrt has an extra }. This seems like a bug to me. Is there a way ...
user avatar
  • 235
41 votes
1 answer
4k views

Why do \sqrt{1} and \sqrt{-1} have different heights?

I noticed that the heights of \sqrt{1} and \sqrt{-1} are different. For instance, when they are in between \left( and \right) parentheses, I must write a character of zero-width (e.g. \sqrt{-1\...
user avatar
  • 557
4 votes
2 answers
298 views

Controlling sqrts (mathptmx)

Consider this MWE \documentclass[border=10mm,varwidth=true]{standalone} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb} %\usepackage{mathptmx} \begin{document} \[ \sqrt{n+1}\sqrt{2+(n+2)^2} \] \...
user avatar
  • 49.2k