How to Write Powers in Text Format on Websites?

  • Thread starter Thread starter Gringo123
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
10 replies · 3K views
Gringo123
Messages
141
Reaction score
0
I have a few questions that I would like to post on this site involving powers. First of all, can someone please tell me how to write the small figures that represent powers? I can do it on Microsofy packages, but not on this site.
 
Physics news on Phys.org
When in advanced options for a reply or when starting a thread if you want 'to the power of' where it has the X^2 where the 2 is above the x click that and insert your value which is being put to the power of in the middle of the code i.e. x2 is just x[.SUP]2[/SUP] just for example i put a fullstop in the first SUP.
 
I prefer the tex option, myself. Makes it easier to write other complicated math stuff.

[tex](\frac{x}{2})^2 = \frac{x^2}{4}[/tex]
 
Char. Limit said:
I prefer the tex option, myself. Makes it easier to write other complicated math stuff.

[tex](\frac{x}{2})^2 = \frac{x^2}{4}[/tex]

Tex is very flexible and powerful. For example parenthesis, brackets and curly braces can be scaled with

\bigr \bigl \Bigr \Bigl \biggr \biggl \Biggr and \Biggl

[tex]\bigl({{x}\over{2}}\bigr)^2 = \frac{x^2}{4}[/tex]

[tex]\biggl({{x}\over{2}}\biggr)^2 = \frac{x^2}{4}[/tex]

[tex]\Bigl({{x}\over{2}}\Bigr)^2 = \frac{x^2}{4}[/tex]

[tex]\Biggl({{x}\over{2}}\Biggr)^2 = \frac{x^2}{4}[/tex]
 
Last edited:
If you see what looks like some fancy LaTeX work, such as the things in elect_eng's post, if you double-click the expression, you can see the script that he used that renders that way.
 
[tex]x^2 should give me x to the power of 2. here goes![/tex]
 
You need both opening and closing tag:

[tеx]x^2[/tеx] -> [tex]x^2[/tex]