Maths for ML / Notation

x2x^{2}

exponent

Arithmetic and relationsBeginner

Say it “x squared”

Multiply x by itself that many times. Careful: a superscript in parentheses x⁽ⁱ⁾ is an index, not a power.

Example

32=93^{2} = 9

In code

x**2
x**2

Where you’ll see it in ML

Squared error, variance, L2 penalties.

Don’t confuse it with

Lessons that use it

← All 94 symbols