mersenneforum.org  

Go Back   mersenneforum.org > New To GIMPS? Start Here! > Homework Help

Reply
 
Thread Tools
Old 2021-12-18, 16:51   #1
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

74810 Posts
Default 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}
What I get is shown in the attachment. I was happy to have the left half of the expression finally work out correctly, but the right half is slowly driving me berserk. What am I doing wrong?

Thanks in advance!
Attached Thumbnails
Click image for larger version

Name:	TeX.jpg
Views:	68
Size:	7.9 KB
ID:	26253  
mart_r is offline   Reply With Quote
Old 2021-12-18, 17:04   #2
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

32·109 Posts
Default

\(\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}\)
kruoli is online now   Reply With Quote
Old 2021-12-18, 18:08   #3
mart_r
 
mart_r's Avatar
 
Dec 2008
you know...around...

22·11·17 Posts
Default

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!
mart_r is offline   Reply With Quote
Old 2021-12-18, 21:17   #4
kruoli
 
kruoli's Avatar
 
"Oliver"
Sep 2017
Porta Westfalica, DE

32×109 Posts
Default

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.
kruoli is online now   Reply With Quote
Reply

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

All times are UTC. The time now is 11:53.


Mon May 23 11:53:40 UTC 2022 up 39 days, 9:54, 0 users, load averages: 1.87, 1.66, 1.58

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔