[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 292 KB, 806x746, albert-einstein1.jpg [View same] [iqdb] [saucenao] [google]
5300184 No.5300184 [Reply] [Original]

i'm reading programming in c by kochan and it says "whereas in mathematics a subscripted variable, xi, refers to the ith element x in a set"

what the fuck does that mean? i didn't do much maths. i know the basics of arrays but what the fuck does that mean?

>> No.5300197

lets say you have a list. instead of naming each entry in the list, x, y, z, ..., you just call them all x with a subscript i. the first is x1, then x2, then x3 and so on.

>> No.5300213

Let's say X is a set defined as such.

X = {xi, x(i+1),x(i+2),x(i+3)....,xn}

it's just a numbering of elements from X.

often n is used instead of i. Common ones are j,k,i,n,p