Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I'm writing my internship report in latex but I have some problem with this
formula 7 in this image below:
Can someone please give me the latex code for this formula?
\[
\frac{%
e^{v_m-1}
}{%
\frac{w_0 e^{w_o - n v_m} - n v_m}{w_o - n v_m} e^{v_m}
- \frac{w_0 e^{w_o + n v_m} + n v_m}{w_o + n v_m}
}
\]
The only interesting here is that if you want to make it look like it does in your paper, you'll have to change the math font. E.g. \usepackage{mathptmx}. And, possibly, add extra space where you want it.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 3 years ago.
Improve this question
I don't suppose anyone can help with a custom TeX symbol? I need a \sqsubset with a \cdot in the middle of the subset symbol.
I tried using some suggestions from other questions I found but they all ruin the spacing of the subset symbol.
You can overlay symbols \sqsubset and \cdot to make them a unit, and vary its size based on the style it's used in.
\documentclass{article}
\usepackage{amssymb}
\newcommand{\sqsubsetcdot}{
\mathchoice
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \displaystyle
{\mathrel{\ooalign{$\sqsubset$\cr\hidewidth$\cdot$\hidewidth}}}% \textstyle
{\mathrel{\ooalign{$\scriptstyle\sqsubset$\cr\hidewidth$\scriptstyle\cdot$\hidewidth}}}% \scriptstyle
{\mathrel{\ooalign{$\scriptscriptstyle\sqsubset$\cr\hidewidth$\scriptscriptstyle\cdot$\hidewidth}}}% \scriptscriptstyle
}
\begin{document}
$A \sqsubset B_{A \sqsubset B_{A \sqsubset B}}$
$A \sqsubsetcdot B_{A \sqsubsetcdot B_{A \sqsubsetcdot B}}$
\end{document}
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
How can I write this function (image) in Latex?
This should lay a sufficient foundation:
\documentclass{article}
\setlength{\parindent}{0pt}% Just for this example
\begin{document}
$f \colon \{0,1\}^N \rightarrow \{0,1\}^M$
$f \colon \{0,1\}^N \mapsto \{0,1\}^M$
\end{document}
You can change the spacing around : (or \colon) as needed, perhaps using f~\colon~.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 8 years ago.
Improve this question
I googled, but the only examples i found with frac was with numbers or simple variables, no one near with alpha, beta or pi.
Can somebody please help me with this equation? Or provide an example using frac with alpha, beta and pi?
Here is my equation that gives me error.
\textit{$\gamma_{i}$(t)$\equiv$ P($X_{t}$ = i $\vert$ Y,$\theta$)} = \frac{$\alpha_{i}$ (t) $\beta_{i}$ (t)} {$\sum\limits_{j=1}^{N}$ $\alpha_{j}$ (t) $\beta_{j}$(t)}
Thanks in advance.
You don't need the italics, or the many sets of dollar signs. Try something more like this:
$\gamma_{i}(t)\equiv P(X_{t} = i \vert Y,\theta) = \frac{\alpha_{i} (t) \beta_{i} (t)} {\sum\limits_{j=1}^{N} \alpha_{j} (t) \beta_{j}(t)}$
Gives (tested with this online LaTeX editor):
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
Given I have:
int1, int2, int3 = 1, nil, 3
how would I subtract these ints from another variable, only if they weren't nil? I can write something sloppy, but I want a single line process if possible.
another_variable - [int1, int2, int3].compact.sum
othervariable - int1.to_i # will turn nil into 0
You can write something like
ans = int1 && (int2-int1)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
first of all i'm new in latex
I wanted to ask if there is a way where i can enlose a text like a code like here in stack overflow thank you very much.
Ive searched here but i dont really know what to seek or how to ask something like this.
I don't know what do you mean by code like text. But you can use \verbatim to display some code like the following if this is what you wanted:
\begin{verbatim}
for i in range(1, 20):
print i
else:
print "the loop is done"
\end{verbatim}