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):
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
What does ";" mean in this equation?
y = f(x;θ)
or
equation
f(X;A) means the function f is function of variables X , with regarding of the parameters A.
As an example, F(X;A)= a*x^x+b*x+c where X=[x] is variable, and A=[a,b,c] are the parameters.
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}
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.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
Im making an ios game very similar to minesweeper in terms of layout and i have no clue how to do taxicab distance. Do I need to use core graphics or just an array or what?
See here .
In essence, the taxicab distance between (x1,y1) and (x2,y2) is |x1-x2| + |y1-y2| (|z| means abs(z))
My approach would have been to use a two-dimensional array - it just seems the simplest and most natural representation of the problem.
I would set all values of the array to 0, randomize and reset certain indices to -1 (mines), and increment the count of each adjacent square of these indices by 1.