Itex Programming: Testing Resizing Formulas

  • Thread starter Thread starter sylas
  • Start date Start date
  • Tags Tags
    Programming
AI Thread Summary
The discussion revolves around testing and comparing itex and tex programming for mathematical expressions. The user shares various equations, including the geodetic factor and formulas involving variables like σ, η, and ξ. There is a focus on the differences between itex and tex, noting that itex is suitable for inline math while tex is better for larger, more complex equations. The user expresses frustration with the preview functionality not displaying itex correctly and seeks clarification on resizing formulas. They also mention the importance of documentation for these tools and share a helpful link for further information. The conversation highlights the nuances of using different math modes in forum settings.
sylas
Science Advisor
Messages
1,647
Reaction score
9
I don't see any forum where I can just test out itex programming, so I'm doing it here. I will try to delete this thread after posting. My apologies if I can't do that.BD = (2\omega + 3)/(2\omega + 4) 0.0409

In paper: 2/3(3/2 - 2ξ/η), and fs 1 - σ/η

Using itex
\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}

Added in edit... sorry. I could not delete. It is annoying that the preview facility seems not to preview itex. I think?

Oh well. Now that the thread is here, I'll see how resizeing works, both outside itex and inside.

First, putting the above inside size tags.
\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}[/size]

Second, adding a "large" tag inside the itex. (Not the proper way to do it in real LaTeX.)
\large \sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}

Hm. Can I make a formula larger some other way?
 
Last edited:
Technology news on Phys.org
Use can use the http://at.org/~cola/tex2img/index.php" (use Math mode)
 
Last edited by a moderator:
sylas said:
Hm. Can I make a formula larger some other way?

Instead of using itex use tex:

\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}
 
mattmns said:
Instead of using itex use tex:

OK... let me try...

\sigma = \frac{1}{\sqrt{(2\varpi+3)(2\varpi+4)}}
\eta = \sqrt{\frac{2\varpi+4}{2\varpi+3}}
\xi = 1 - \eta + 2\varpi
geodetic factor \frac{2}{3}(\frac{3}{2} - 2\frac{\xi}{\eta}) = 1 - \frac{4\xi}{3\eta}

\begin{array}{rcl}\frac{2}{3}(\frac{3}{2}-\frac{2\xi}{\eta})<br /> &amp;=&amp;1-\frac{4\xi}{3\eta}\\<br /> &amp;=&amp;1-\frac{4-4\eta+8\sigma}{3\eta}\\<br /> &amp;=&amp;1-\frac{4}{3}\sqrt{\frac{2\varpi+3}{2\varpi+4}}+\frac{4}{3}-\frac{8}{3}\sqrt{\frac{(2\varpi+3)}{(2\varpi+4)^2(2\varpi+3)}}\\<br /> &amp;\approx&amp;1-\frac{4}{3}(1-\frac{1}{2(2\varpi+4)})+\frac{4}{3}-\frac{8}{3(2\varpi+4)}\\<br /> &amp;=&amp;1+\frac{1}{3(\varpi+2)}-\frac{4}{3(\varpi+2)}\\<br /> &amp;=&amp;1-\frac{1}{\varpi+2}\end{array}

Excellent -- just what I want. But what is the difference? tex still seems to use a math mode. Where are these documented?

Using the various preview tools at other sites is helpful, but I don't feel confident that the implementation will be exactly as it is here.

Cheers -- Sylas
 
Last edited:
The difference is that itex is small, and tex is big :smile: Generally, you use itex when you are writing math in-line. And you use tex whenever you feel like you need/want to. For example, as you saw, fractions sometimes are difficult to read when you use itex, so it is probably better to use tex for fractions.

Consider the following example.

I am using itex here: \sum_{i=1}^{\infty}x^i and I am using tex here: \sum_{i=1}^{\infty}x^i. See how tex is kind of messing with the line spacing.edit... You can probably find some more info here: https://www.physicsforums.com/showthread.php?t=8997
 
Last edited:
Aha. That link was great. It would be good to have as a standard help page.

TeX has both inline and displaymath styles; and the two tags tex and itex handle those two cases.

Trying an equation...

\begin{equation*}\begin{split}\frac{2}{3}(\frac{3}{2}-\frac{2\xi}{\eta})&amp;=1-\frac{4\xi}{3\eta}\\&amp;=1-\frac{4-4\eta+8\sigma}{3\eta}\\<br /> &amp;=1-\frac{4}{3}\sqrt{\frac{2\varpi+3}{2\varpi+4}}+\delta\end{split}\end{equation*}
 
Last edited:
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top