2022 Developer Survey is open! Take survey.

Questions tagged [mathematics]

The tag has no usage guidance.

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

Which symbols should be used as placeholders for letters and numerical digits? [closed]

I need to generally describe the syntax of random alphanumeric sequences, say ACW3920 or 39B0Q8, and discuss certain cases, e. g. the first two digits being letters, or the sequence ending with BA, 87 ...
user avatar
0 votes
0 answers
34 views

Is there a way to extract math from a pdf in LaTeX format using SESHAT?

So I've been tasked with using SESHAT to extract the math problems from a large pdf into latex format, but seshat requires an InkML or SCGink file type as it's input. Is there a way I can convert pdf ...
user avatar
-3 votes
1 answer
115 views

How to plot Inverse of W-lambert function with pgfplots?

This is my effort for plotting w-lambert and its inverse, but I get an error: \begin{figure}[t] \centering \begin{subfigure}[scale = 1]{0.4\textwidth} % \...
user avatar
1 vote
1 answer
47 views

Is it a good practice to leave space before mathematical text? [duplicate]

I used to write equations in the following way: Text %Empty line \[ code \] %Empty line Text I have noticed that with this syntax there is more space above the maths than beneath them. Is that ...
user avatar
  • 183
1 vote
0 answers
34 views

Animation of Logical and Mathematical Proofs [closed]

I have 2 questions regarding animations of mathematical proofs: I know that one can create a presentation using the Beamer package. I would also like to use animations. Is there an option to present ...
user avatar
  • 121
0 votes
0 answers
34 views

Grid Method Multiplication

I am trying to write a document on some elementary algebra but I'm quite new to LaTeX. I'm currently using overleaf and would like to draw a box method multiplication. I could add them in as images ...
user avatar
0 votes
0 answers
27 views

Problems and solutions - in source code problem+solution together, in output first all the problems, and then all solutions. How to do it?

I would like to write a mathbook with problems and solutions (first the problems, and then the solutions in the end). It should look somehow like this: Math book: how to write Exercise and Answers ...
user avatar
0 votes
2 answers
130 views

Writing my first book [closed]

I am writing my first book ever, an undergraduate mathematics textbook, and even though I'm halfway done with the content, I'm still using a really simple template I found on the internet that uses ...
user avatar
0 votes
0 answers
39 views

One to one function, how to draw in LaTeX? [duplicate]

Here are both set of one to one function. How to make LaTeX coding in figure type: (x)=0,2,3 (y)=a,b,c
user avatar
2 votes
0 answers
97 views

How can I make the following test template? [closed]

How can I make this template in the most correct way?
user avatar
  • 584
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
1 vote
1 answer
31 views

Why is error shown during compiling my document?

I have written a document with equations in it. The equations are written with $ on both sides. But there are certain errors displayed while compiling which I'm unable to rectify as I'm unable to ...
user avatar
0 votes
0 answers
31 views

Math formulae alignment in multiple dotted lines with answer on the lines

In the post Multiple dotted lines with answer on the lines, Piroooh provided an excellent solution and with excellent document as well. Is there any chance to further enhance the MWE provided by ...
user avatar
0 votes
1 answer
59 views

How to represent small numbers in academic writing?

I am seeking some suggestions through this query. In case this is not the right forum, kindly suggest where I may get an answer? I need to represent small numbers in multiple tables meant for ...
user avatar
  • 329
3 votes
2 answers
73 views

Markov Chain, Conditional Independence

Is the following symbol standard or is it defined in some package? If not, how would you implement this symbol in LaTeX?
user avatar
  • 79
1 vote
0 answers
53 views

Why is apalike bibliographystyle (and more generally author-date styles) so rare in mathematics? [closed]

I hope that this question is appropriate for this forum -- I don't really know where else to ask it, and I think it is at least relevant to the expertise of the users of this site. I often find that ...
user avatar
  • 123
0 votes
3 answers
271 views

How to use a single equation number with flalign in latex.?

I have the following code to output an equation. I want to use a single equation number for this whole block. How can we do it?
user avatar
2 votes
1 answer
5k views

Indicator function sign [duplicate]

Whenever I need the indicator function I use (for example) the following syntax \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \Huge The indicator function : $$ \...
user avatar
  • 121
1 vote
0 answers
61 views

Write an equation showing a condition indicating correlation between two variables

I am trying to write this conditional equation: I am not sure what could be the mathematical syntax for saying: "variables x and y are correlated". While searching for this, I came to know ...
user avatar
0 votes
0 answers
82 views

Why doesn't my nomenclature get printed out?

I am facing trouble to print the nomenclature of my thesis because it simply doesn't get printed out. I'm using more symbols but with those two it's already not working, I am following this tutorial: ...
user avatar
2 votes
1 answer
150 views

Mathematical expression for mean of sum of pairs

Hello everyone I have a matrix such as : and I do the mean of sum of all pair such as (H1H2)+(H1H3)+(H1H4)+(H1H5)+(H2H3)+(H2H4)+(H2H5)+(H3H4)+(H3H5)+(H4H5)/nb pairs and I wondered how can I exprime ...
user avatar
  • 23
0 votes
2 answers
3k views

How to write the Gaussian Naive Bayes formula in latex?

I am trying to compute the Gaussian Naive Bayes formula in latex, and what I obtained until now is: $P(x_{\mathrm{i}|$y$}) = \frac{1}{{\sigma \sqrt {2\pi } }}e^{{{ - \left( {x - \mu } \right)^2 } \...
user avatar
0 votes
1 answer
386 views

How to write the SVM formula in latex?

How to write this formula in Latex? I tried this, but it does not work and I dont know why nor k=how to improve it. $frac{$$w$^{$T$}\times($x$ - $x$)$\}{$w$}$ Moreover, I dont know how to prite the ...
user avatar
6 votes
4 answers
180 views

Custom Symbol Creation | Union and Intersection

I am a beginner in LaTeX and was wondering if someone could help me with the following problem. I will be soon embarking on a re-formatting journey of a certain article and believe that I have most of ...
user avatar
  • 61
2 votes
2 answers
47 views

How to align and make the solving process more pleasing?

I would like to make this presentation more mathematically pleasing - that is, I'd like to align this working process so that there is no big difference between the first 7\left(\frac 1 2 y\right) + ...
user avatar
  • 321
3 votes
1 answer
51 views

Mimicking the spacing of `\shortintertext`

I am trying to have two align*-environments with some text between them. As the text is very short, I'd usually use \shortintertext. But I don't want the two environments to share the tab stops -- ...
user avatar
  • 1,486
0 votes
0 answers
345 views

Where to find good templates for mathematical proofs?

Where can we find very good examples of templates for mathematical proofs using LaTeX? Specially if we would aim to send something for the Annals of Mathematics? Let's say, by hypothesis, that we ...
user avatar
  • 2,981
0 votes
1 answer
120 views

Mathematics mod with ln

I don't get it how to use here mm mode to get these $\ln{\dfrac{\sum_{n,m=u_{k}}}{2}}$
user avatar
2 votes
1 answer
219 views

Writing reverse cases in Lyx

The basic cases environment looks like { However, I want to make it } I learned how to do it using just tex at How to put a brace on the right, not left, to group cases? But how can I do it ...
user avatar
  • 187
1 vote
2 answers
153 views

Plot construction for a velocity vs position graph. Interpolation for phase-diagram construction?

I need to plot a few graphs. First is of the function \begin{equation} x(t)= -e^{ -(0.1 \ {s}^{-1}) t} \cos \left( ( 0.995 \ {rad} / \mathrm{s})t \right) \end{equation} and of $\dot{x}$ (...
user avatar
0 votes
1 answer
838 views

Theorem/Definition/... with individual numbering

I would like to give the theorem/lemma/definition/... environment an individual number. For example: 1 Section Theorem 20.1. (XXX) ... Definiton 21.2.1.: ... Here is the "20.1." and "21.2....
user avatar
  • 3
2 votes
1 answer
100 views

Can anybody help to write the mathematical equation with latex

also, can anyone suggest me good pdf file for it to learn the coding maths in latex Thank you
user avatar
  • 139
2 votes
1 answer
199 views

Cross Multiplication

I am trying to achieve something similar to this: My first idea was to use nodes inside tikzpicture, so I came up with this: First Example \documentclass[11pt]{article} \usepackage{tikz} \...
user avatar
  • 23
1 vote
0 answers
70 views

n-base fractional to decimal calculations in LaTeX

How can I visualise the the conversion of binary floating number or any other base to decimal number in LaTeX? Example scenario: 11.101 = 2^1 + 2^0 + 2^-1 + 2^-3 However, I would like to visualise ...
user avatar
  • 160
5 votes
2 answers
387 views

Spacing in "$d=2$-dimensional"

What is the correct spacing if I want to write phrases like "d=3-dimensional". If I just write $d=1$-dimensional, the spacing around the equal-sign seems to be way too wide for me? (Maybe also the ...
user avatar
  • 711
10 votes
3 answers
992 views

programmatically drawing sinusoids with tikz

Here's eight full oscillations of a sine wave: Here's the code: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[gray!20] (0,-2) grid (32,2); %...
user avatar
  • 1,969
16 votes
2 answers
2k views

Drawing an accurate guitar fretboard with TikZ

This is kind of a fun one. dist( x ) = s / ( 2 ^ ( x / d ) ) Such that: x = number of the fret being evaluated (let's say {0,...,24} so it's exactly 2 full octaves). s = scale length (...
user avatar
  • 1,969
3 votes
2 answers
251 views

Stylized punctuation marks for mathematical formulas

I'm looking for a a set of stylized punctuation marks for use in mathematical formulas. Package stix has a symbol \typecolon that looks like this This is just the kind of thing I am looking for, but ...
user avatar
  • 8,684
4 votes
3 answers
189 views

Transforming a statement into a mathematical expression

Is there a way, where I could automatically transform a string (using a command) like: (1/SF) * (MDD\_a) * (1/LDD\_b) * (MBS\_b) * (1/SSA\_ab) into a mathematical expression like: $(\frac{1}{SF}) * ...
user avatar
  • 377
2 votes
2 answers
814 views

Placing `\sim` above `\to`, with correct spacing

In an answer to a previous question, it is explained that \xrightarrow{\sim} will produce an arrow pointed to the right with the \sim symbol above it (e.g., to indicate that a map is an isomorphism)....
user avatar
  • 560
5 votes
1 answer
302 views

(easy?) Matrix with wide blocks

I'd like to create a matrix like this: \documentclass{article} \usepackage{amsmath} \begin{document} $$ \begin{bmatrix} a & b' \\ b & D \end{bmatrix} $$ \end{document} but I'd like ...
user avatar
  • 53
1 vote
1 answer
80 views

Superscripts on a `\widetilde`

Consider the following: \documentclass{article} \begin{document} \[ KO^n(X), \widetilde{KO}^n(X). \] \end{document} The superscript appears too high in the second one. Ideally, I'd have the n ...
user avatar
  • 560
3 votes
1 answer
278 views

Adding spacing in mathtools' `set` command

In the mathtools documentation, page 27, a command \Set* (along with \Set) is defined to stretch according to the large input inside: \providecommand\given{} \newcommand\SetSymbol[1][]{ \...
user avatar
  • 560
8 votes
2 answers
594 views

Why is there a trace line in this tikz graph?

I am trying to generate a shaded area between three curves: two are y=±√x and third one is y=5. \documentclass[10pt,multi=False,border=5pt,tikz,class=scrartcl]{standalone} \usepackage{xcolor} \...
user avatar
3 votes
3 answers
2k views

math in MS Calibri

I have to typeset a document in Calibri upright letters. There is a problem with mathematics: When I typeset the following minimal-example, letters are right Calibri, but numbers are italic by default....
user avatar
  • 33
2 votes
2 answers
3k views

Complex Mathematical equation?

How do I write the below mathematical equations? I am Newbie to this Latex world. please help me
user avatar
7 votes
2 answers
1k views

Graphing truncated Fourier transform

I need to graph the following three figures that represent the truncated Fourier series. I really have no idea how to graph them. Can anyone help me please?
user avatar
1 vote
1 answer
80 views

Entering formula into Latex - urgent issue

Good evening everyone, would anyone please help me out with transferring this screenshot into LaTex? It would be optimal, to have the equation in the same line. I have to hand it in within the next ...
user avatar
  • 151
2 votes
1 answer
244 views

mathematics beamer problem

I removed slides that worked, checked that they compiled properly and include here all the slides that didn't work (checked individually as well). \documentclass[17pt]{beamer} \usepackage{amsmath} \...
user avatar
6 votes
1 answer
201 views

Which of the \dots_ variants go with \times?

Assume you write stuff such as f\colon A_1 \times \dots \times A_n \to A_{n+1} which declares a function f taking n arguments of types A_1 till A_n, respectively, and returning a single value of ...
user avatar