2021-12-18, 16:51 | #1 |
Dec 2008
you know...around...
19×41 Posts |
TeX expression not right
I hope this roughly qualifies as homework help. I've been spending an hour to get this one line into the TeXworks program:
Code:
\Bbb P(\xi_n=1)={1\over\log n} \mbox{ and } \Bbb P(\xi_n=0)=1-{1\over\log n} Thanks in advance! |
2021-12-18, 17:04 | #2 |
"Oliver"
Sep 2017
Porta Westfalica, DE
2·3·181 Posts |
\(\Bbb P(\xi_n=1)={1\over\log n} \mbox{ and } \Bbb P(\xi_n=0)=1-{1\over\log n}\)
Hm... It is interpreted the way you want here. Have you tried: {\Bbb P}(\xi_n=1)={1\over\log n} \mbox{ and } {\Bbb P}(\xi_n=0)=1-{1\over\log n} \({\Bbb P}(\xi_n=1)={1\over\log n} \mbox{ and } {\Bbb P}(\xi_n=0)=1-{1\over\log n}\) |
2021-12-18, 18:08 | #3 |
Dec 2008
you know...around...
19·41 Posts |
I know, it works outside of the program.
But the trick with bracketing the "\Bbb P" part had the desired effect, now the outcome looks like it should. Thanks a lot! |
2021-12-18, 21:17 | #4 |
"Oliver"
Sep 2017
Porta Westfalica, DE
43E_{16} Posts |
Some clarification for this:
There are some TeX-commands that work like a function with one parameter (which will be the same if written as \x{y} or \x y), multiple parameters (as in \x{y}{z}...) and there are functions that work like a switch (meaning that using them will be applied to the whole current block). I'm leaving out optional parameters here and I might be simplifying things a lot. |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Expression evaluation | Nick | Programming | 8 | 2019-08-04 07:24 |
Rationality of an expression | jnml | Miscellaneous Math | 7 | 2018-09-06 15:57 |
A Fib expression with multiplication | MattcAnderson | Homework Help | 5 | 2016-11-01 08:16 |
regular expression help | ixfd64 | Programming | 2 | 2009-03-01 06:19 |
Does Anyone Know how to Simplify the Following Expression? | jinydu | Puzzles | 9 | 2004-04-02 01:03 |