Elliptic curve arithmetic: Difference between revisions

m
→‎{{header|11l}}: Static type variables are supported now
m (syntax highlighting fixup automation)
m (→‎{{header|11l}}: Static type variables are supported now)
Line 47:
 
<syntaxhighlight lang="11l">T Point
:b = 7
 
Float x, y
 
Line 97 ⟶ 99:
F String()
R ‘(#.3, #.3)’.format(.x, .y)
 
V Point_b = 7
 
F show(s, p)
Line 104:
 
F from_y(y)
V n = y * y - Point_bPoint.:b
V x = I n >= 0 {n ^ (1. / 3)} E -((-n) ^ (1. / 3))
R Point(x, y)
1,480

edits