How to Write Powers in Text Format on Websites?

  • Thread starter Thread starter Gringo123
  • Start date Start date
AI Thread Summary
To write powers in text format on websites, users can utilize specific tags like [*SUP] for superscripts or [*tex] for LaTeX formatting. The [*SUP] tag allows for simple expressions like x[*SUP]2[/SUP], while the [*tex] option supports more complex mathematical notation. Many users prefer the LaTeX method for its flexibility in handling various mathematical symbols and structures. It's important to ensure both opening and closing tags are correctly placed to render the expressions properly. Understanding these formatting options enhances the ability to communicate mathematical concepts effectively online.
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
2x = 2[*SUP]x[*/SUP] without the * (the X2 button)

or [*tex)2^x[*/tex] without the * (check the Σ button)
 
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.

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

(\frac{x}{2})^2 = \frac{x^2}{4}

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

\bigl({{x}\over{2}}\bigr)^2 = \frac{x^2}{4}

\biggl({{x}\over{2}}\biggr)^2 = \frac{x^2}{4}

\Bigl({{x}\over{2}}\Bigr)^2 = \frac{x^2}{4}

\Biggl({{x}\over{2}}\Biggr)^2 = \frac{x^2}{4}
 
Last edited:
x[.SUP]2[/sup]
 
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.
 
x^2 should give me x to the power of 2. here goes!
 
and x^2
 
  • #10
You're missing the tex tags! [t ex] x^2 [/t ex] (remove the spaces between the t and e)
 
  • #11
You need both opening and closing tag:

[tеx]x^2[/tеx] -> x^2
 
Back
Top