Imaginary base numbers: Difference between revisions
m
→{{header|11l}}: Static type variables are supported now
Thundergnat (talk | contribs) m (syntax highlighting fixup automation) |
Alextretyak (talk | contribs) m (→{{header|11l}}: Static type variables are supported now) |
||
Line 317:
V denom = c.real * c.real + c.imag * c.imag
R Complex(c.real / denom, -c.imag / denom)
V QuaterImaginary_twoI = Complex(0, 2)▼
T QuaterImaginary
:invTwoI = inv(.:twoI)
String b2i
Line 338:
I k > 0
sum += prod * k
prod *=
I pointPos != -1
prod =
L(j) posLen + 1 .< .b2i.len
V k = Int(.b2i[j])
I k > 0
sum += prod * k
prod *=
R sum
|