0

Ringi elementide arv n

Kordaja q

Ringi elementide arv n=

Kordaja q=

+1

+0.1

-0.1

-1

raadius: 10
AlgPunkt: ((-raadius), 0)
n = 10 (slider from 10 to 200, step 1)
q = 2 (slider from 2 to n - 1, step 1)
Z_n = Sequence(0, n - 1)
Nurgad = Sequence((360° * i / n), i, 0, n - 1)
KohaPunktid = Sequence(Rotate[AlgPunkt, (-Nurgad(i))], i, 1, n)
Sildid = Sequence(Text[Z_n(i), (KohaPunktid(i) * 1.07)], i, 1, n)
Test2 = Mod((2 * 0), 10)
TehteVektorid = Sequence(Vector[KohaPunktid(i), KohaPunktid(Mod[(Z_n(i) * q), n] + 1)], i, 1, n)
LiitmisVektorid = Sequence(Vector[KohaPunktid(i), KohaPunktid(Mod[Z_n(i) + q, n] + 1)], i, 1, n)
InputBox1 = Textfield(n)
InputBox2 = Textfield(q)
Struktuur = If(IsPrime[n], "Korpuse", "Ringi")
text1: "\mathbb{Z}_{" + (LaTeX[n]) + "} =\left\{   " + (LaTeX[Z_n(1)]) + " ,  " + (LaTeX[Z_n(2)]) + ", " + (LaTeX[Z_n(3)]) + " ..., " + (LaTeX[Z_n(n - 1)]) + ", " + (LaTeX[Z_n(n)]) + " \right\} \\" + (LaTeX[Struktuur]) + " \; \mathbb{Z}_{ " + (LaTeX[n]) + "}  \; elementide \; korrutamine \; arvuga \; " + (LaTeX[q]) + " "