Questions tagged [mathematics]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
2answers
85 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 } \...
0
votes
1answer
56 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 ...
6
votes
4answers
147 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 ...
2
votes
2answers
40 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) + ...
0
votes
0answers
42 views

What is the code for this symbol? [duplicate]

What is the code for the angle as shown in this diagram? (It is kind of rare)
3
votes
1answer
31 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 -- ...
0
votes
0answers
68 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 ...
0
votes
1answer
54 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}}$
2
votes
1answer
60 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 ...
1
vote
2answers
76 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}$ (...
0
votes
1answer
182 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....
2
votes
1answer
64 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
2
votes
1answer
67 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} \...
1
vote
0answers
58 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 ...
5
votes
2answers
204 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 ...
9
votes
3answers
698 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); %...
15
votes
2answers
901 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 (...
3
votes
2answers
165 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 ...
4
votes
3answers
159 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}) * ...
2
votes
2answers
306 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)....
5
votes
1answer
182 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 ...
1
vote
1answer
54 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 ...
3
votes
1answer
157 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][]{ \...
8
votes
2answers
418 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} \...
3
votes
3answers
1k 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....
2
votes
2answers
2k views

Complex Mathematical equation?

How do I write the below mathematical equations? I am Newbie to this Latex world. please help me
6
votes
2answers
778 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?
1
vote
1answer
74 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 ...
2
votes
1answer
215 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} \...
6
votes
1answer
151 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 ...
1
vote
1answer
112 views

Is there a difference between absolute and OR (logic) symbols?

I'm converting a document to LaTeX for a friend and it has the following equation: I've asked him if it's correct and he says it is (I'm not an engineer/mathematician). The author is good at what he ...
1
vote
0answers
358 views

How to use URW-Arial font in pdflatex for both text and Mathematics

I want to use urw-arial fonts for mathemtical text also. For text, I can do something like \usepackage[T1]{fontenc} \usepackage{uarial} \renewcommand{\familydefault}{\sfdefault} from one of the ...
0
votes
0answers
97 views

tikz mathematics: matrices and operations with them

This code draws a certain plot: \documentclass{minimal} ...
2
votes
1answer
517 views

Svg output for Mathematics using htlatex or tex4ht

A LaTeX document is to be converted to html using tex4ht or htlatex. If the .cfg file is included with \Configure{html}{xml} \Preamble{xhtml} or \Configure{html}{xml} \Preamble{xhtml,png} The ...
0
votes
1answer
77 views

ConTeXt: bad spacing when a formula environment is placed within a TEXpage environment [closed]

I’m working on a project that requires intensive use of mathematics environments and TEXpage environments. I noticed that bad spacings appear when a formula environment is placed within a TEXpage ...
7
votes
3answers
1k views

How to include inclusion/subgroup relationship in tikz-cd diagram

I want to make a tikz-cd diagram (for simplicity, let's just make it one vertical arrow, though I actually am working with a square) which also says that some objects are subsets of other sets, or ...
0
votes
1answer
52 views

Yet another ! Missing $ error [duplicate]

I want to convert a mathematics document to pdf, but I am getting missing $ errors. Here is my code: \documentclass{article} \begin{document} 1. All prime numbers are odd Universal Statement: For ...
4
votes
1answer
923 views

Tag chemical equations with letters and numbers

Just started in the writing of chemistry stuff using LaTeX. Question Is it possible to tag chemical equations with a letter and numbers as R1, R2 and so on? Output and MWE \documentclass[12pt,...
5
votes
1answer
137 views

Avoid displayed formulas at the top of pages in ConTeXt

I want to avoid displayed formulas at the top of pages in ConTeXt (in fact, my big document has several displayed formulas on top of pages), and I have read this answer on the subject. Thus, I played ...
1
vote
1answer
499 views

How to format a table inside a Matrix special?

I hope I could find a solution to make something similar to this: I couldn't add D=\left( and \right) to this table: \begin{table}[h] \centering \caption{Data matrix format} \label{my-label} \begin{...
25
votes
2answers
14k views

Math book: how to write Exercise and Answers

EDIT within \documentclass[12pt]{book}I want to create chapter-wise exercises and put all the solutions (with or without hints) at the end of the book. I want to do this in simple and non-tedious way ...
2
votes
1answer
302 views

Alternative to \asteraccent

\asteraccent is great. It allows me to put an asterisk above a symbol (see here) But, it requires me to use the following package \usepackage{unicode-math} which gives me a terrible time to produce ...
0
votes
1answer
578 views

Problem with symbol in section [closed]

How to avoid the errors when we put a symbol mathematics in a section? \section {Répartition des carrés dans $\mathbb{F}_{p}$}
11
votes
4answers
4k views

How to create a table of signs

I'm pretty new to TeX and LaTeX and to learn I'm trying to copy my handwritten notes from my notebook to a LaTeX document. I feel like I'm starting to understand how LaTeX works, but I'm certainly not ...
4
votes
1answer
7k views

How would I underline an equation with a curly brace and an explanation? [duplicate]

How would I underline an equation with a curly brace and an explanation?, like I've pictured below? I've tried to use the amsmath package, but the \underline directive does not produce the brace and ...
2
votes
2answers
3k views

How can siunitx be used with mathematics environment notation?

How can mathematics environment notation be used with units provided by siunitx? Let's way I want to have some code like the following: \SI{10^{-28}}{m^{2}} Is it possible to use this mathematics ...