Questions tagged [sqrt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
80 views

Lines of the square root don't match [duplicate]

the line of the square root don't match. \sigma = \sqrt{\frac{1}{N} \mathlarger{\sum}_{n=1}^{N} \left( x_{n}- \mu \right) ^{2}} Any ideas how to fix it? Thanks
ab3001's user avatar
  • 63
2 votes
0 answers
44 views

Horizontal rule on tall radical sign has segments of different thicknesses

I wonder how I can generate a document, as shown below, in which the horizontal rule for the radical does not comprise two segments of differing thicknesses. I'm working on Ubuntu 22.04. latex --...
Robert Dodier's user avatar
4 votes
1 answer
352 views

What was the reason behind using sqrt (square root) to name the nth root command? [closed]

Clearly talking about: \sqrt[n]{x} here!
Hamza Nouar's user avatar
0 votes
1 answer
85 views

Baseline of \sqrt

How is it possible to change the baseline of a root but not sliding the radicand below it? My aim is something like the image (which I constructed by manipulating the screenshot of the MWE). From ...
ubuntuuser's user avatar
1 vote
2 answers
86 views

A square root sign starting at the baseline

When typing a square root sign sometimes it looks a little bit ugly when the lower part reaches beyond the baseline: \documentclass{standalone} \begin{document} The expression \( \sqrt{x} \) is ...
Andreas Knobloch's user avatar
1 vote
2 answers
133 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 ...
Florian's user avatar
  • 113
4 votes
1 answer
164 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{...
Martín Moreno's user avatar
7 votes
1 answer
602 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} ...
Joy Jin's user avatar
  • 205
8 votes
1 answer
273 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
Jason's user avatar
  • 81
3 votes
1 answer
152 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=...
Zhiyuan Liu's user avatar
3 votes
3 answers
829 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
user264773's user avatar
0 votes
0 answers
47 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
376 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 ...
andybuckley's user avatar
  • 1,168
6 votes
3 answers
373 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 ...
Sebastiano's user avatar
  • 54.4k
0 votes
0 answers
91 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 ...
Sebastiano's user avatar
  • 54.4k
7 votes
3 answers
939 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 ...
35T41's user avatar
  • 327
6 votes
2 answers
306 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 ...
Aria's user avatar
  • 1,523
0 votes
2 answers
95 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.
Avijit's user avatar
  • 11
6 votes
2 answers
433 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 ...
Babado's user avatar
  • 217
0 votes
1 answer
128 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}} + ...
kegemo's user avatar
  • 3
6 votes
2 answers
359 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 ...
Bored Comedy's user avatar
2 votes
1 answer
178 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 ...
EthanAlvaree's user avatar
  • 1,367
11 votes
1 answer
331 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 ...
ATW's user avatar
  • 395
2 votes
2 answers
778 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 ...
D.R's user avatar
  • 771
7 votes
2 answers
252 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's user avatar
  • 2,530
2 votes
0 answers
74 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 (...
Clay's user avatar
  • 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 ...
tlou's user avatar
  • 140
1 vote
3 answers
434 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 \]
Marlon Cori Callisaya's user avatar
1 vote
0 answers
259 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 ...
ShBh's user avatar
  • 123
4 votes
1 answer
208 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 ...
Blaz Korecic's user avatar
2 votes
2 answers
349 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 ...
AlMa's user avatar
  • 560
2 votes
1 answer
131 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 (...
Ivan's user avatar
  • 469
0 votes
0 answers
204 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{...
Migue's user avatar
  • 379
0 votes
0 answers
233 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.
Lucas Herick's user avatar
7 votes
3 answers
1k 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}' ? ...
Neuling's user avatar
  • 85
0 votes
2 answers
374 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 ...
Walter's user avatar
  • 1,227
1 vote
2 answers
818 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}
Suppboi's user avatar
  • 325
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. ...
Chandramouli Santhanam's user avatar
1 vote
1 answer
67 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} \...
Gabriele's user avatar
  • 1,925
0 votes
1 answer
590 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-...
ivankokan's user avatar
  • 1,056
3 votes
3 answers
609 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} ...
Lele99_DD's user avatar
  • 588
4 votes
2 answers
619 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}}
Cristina Maria Pacurar's user avatar
2 votes
2 answers
212 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 ...
Marco Disce's user avatar
7 votes
2 answers
3k 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} + \...
AXL's user avatar
  • 440
4 votes
1 answer
381 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 ...
oliversm's user avatar
  • 2,717
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{\...
slew123's user avatar
  • 547
3 votes
2 answers
352 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 ...
Sebastiano's user avatar
  • 54.4k
3 votes
1 answer
351 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: ...
Elton Carvalho's user avatar
2 votes
2 answers
394 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 ...
Thanos's user avatar
  • 12.5k
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 ...
Peter Grill's user avatar