Questions tagged [sqrt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
76 views

Square root symbol with longer horizontal bar TO THE LEFT

Using the standard LaTeX notation for the square root, I get I find it ugly that there is this "pike" under the 1-r and think there should be a short horizontal line. It should look like ...
  • 113
4 votes
1 answer
115 views

Root symbol on newtxmath

I'm using the newtxmath package, but I don't like the symbol layout for the roots. I would like to go back to the root symbol of computer modern font. any command line to do it, after \usepackage{...
6 votes
1 answer
539 views

Square roots look ugly with high and long expression [duplicate]

Example: \documentclass{article} \begin{document} \ \begin{equation}v=\sqrt{\frac{2k\left(\frac{qQ_1}{r_i}+\frac{qQ_2}{r_i}-\frac{qQ_1}{r_f}-\frac{qQ_2}{r_f}\right)}{m}}\end{equation} \end{document} ...
  • 163
8 votes
1 answer
264 views

Enumeration of sqrt signs

I need to enumerate \sqrt signs as shown in the picture below but have no idea how to do it. I wonder if anyone could help. Thanks
  • 81
3 votes
1 answer
78 views

LaTeX table/tabular and math/maths mode, insufficient vertical distance between square root symbol and the top edge

Got a problem with the square root sign inside a table: SEE THE COMMENTED PART \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{indentfirst} \usepackage[left=1.2in,right=1.2in,top=...
3 votes
3 answers
688 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
0 votes
0 answers
39 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 \...
2 votes
2 answers
203 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 ...
  • 1,128
6 votes
3 answers
252 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 ...
0 votes
0 answers
67 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 ...
7 votes
3 answers
895 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 ...
  • 317
6 votes
2 answers
270 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 ...
  • 1,513
0 votes
2 answers
92 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.
  • 11
5 votes
2 answers
336 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 ...
  • 207
0 votes
1 answer
89 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}} + ...
  • 3
6 votes
2 answers
340 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 ...
2 votes
1 answer
138 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 ...
  • 1,273
11 votes
1 answer
223 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 ...
  • 395
1 vote
2 answers
372 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 ...
  • 701
7 votes
2 answers
224 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 \...
  • 2,539
2 votes
0 answers
62 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 (...
  • 131
13 votes
1 answer
1k 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 ...
  • 140
1 vote
3 answers
389 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 \]
1 vote
0 answers
175 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 ...
  • 123
4 votes
1 answer
168 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 ...
2 votes
2 answers
253 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 ...
  • 521
2 votes
1 answer
109 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 (...
  • 469
0 votes
0 answers
177 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{...
  • 369
0 votes
0 answers
195 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.
7 votes
3 answers
716 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}' ? ...
  • 85
0 votes
2 answers
305 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 ...
  • 1,187
1 vote
2 answers
570 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}
  • 315
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. ...
1 vote
1 answer
49 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} \...
0 votes
1 answer
477 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-...
  • 1,016
3 votes
3 answers
541 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} ...
  • 568
4 votes
2 answers
605 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}}
2 votes
2 answers
195 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 ...
7 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} + \...
  • 440
4 votes
1 answer
341 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 ...
  • 2,577
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{\...
  • 497
3 votes
2 answers
328 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 ...
3 votes
1 answer
234 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: ...
2 votes
2 answers
336 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 ...
  • 12.2k
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 ...
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 ...
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. ...
  • 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. ...
  • 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} \...
1 vote
1 answer
323 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 ...
  • 317