Questions tagged [sqrt]
The sqrt tag has no usage guidance.
60
questions
4
votes
1
answer
117
views
Nicer \sqrt with urw-garamond
The \sqrt in the urw-garamond (mathdesign) package becomes upright at very little, like in the example image.
I don't suppose this behaviour can be changed? Is it possible to replace the \sqrt ...
2
votes
0
answers
82
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
2
votes
0
answers
45
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 --...
4
votes
1
answer
392
views
What was the reason behind using sqrt (square root) to name the nth root command? [closed]
Clearly talking about:
\sqrt[n]{x}
here!
0
votes
1
answer
95
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 ...
1
vote
2
answers
96
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 ...
1
vote
2
answers
153
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 ...
4
votes
1
answer
175
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{...
7
votes
1
answer
639
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}
...
8
votes
1
answer
276
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
3
votes
1
answer
180
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
893
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
52
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
438
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 ...
6
votes
3
answers
424
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
93
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
953
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 ...
6
votes
2
answers
314
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 ...
0
votes
2
answers
96
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.
6
votes
2
answers
467
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 ...
0
votes
1
answer
132
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}} +
...
6
votes
2
answers
365
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
185
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 ...
11
votes
1
answer
362
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 ...
2
votes
2
answers
927
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 ...
7
votes
2
answers
260
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
votes
0
answers
83
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 (...
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 ...
1
vote
3
answers
450
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
263
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 ...
4
votes
1
answer
218
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
365
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 ...
2
votes
1
answer
139
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 (...
0
votes
0
answers
218
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{...
0
votes
0
answers
250
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
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}' ?
...
0
votes
2
answers
389
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
vote
2
answers
916
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}
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
76
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
630
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-...
3
votes
3
answers
644
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}
...
4
votes
2
answers
624
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
213
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
4k
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} + \...
4
votes
1
answer
396
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
votes
2
answers
2k
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{\...
3
votes
2
answers
359
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
420
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
412
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 ...