New answers tagged

0 votes

Construct the point with two segments

Ruby, 49 bytes ->a,c,b{[x=3*a+b,0,a+=a-x*b+=b-1,c+=c,x,1,a,c-b]} Try it online! Ruby port of Jonathan Allan's Python port of Neil's Charcoal solution. Fixed by ...
G B's user avatar
  • 21.9k
2 votes

Construct the point with two segments

Wolfram Language (Mathematica), 28 25 22 17 bytes #2{0,1,I,1+I-I#}& Try it online! Input [b, a+c*I] corresponding to the ...
att's user avatar
  • 20.4k
0 votes

Construct the point with two segments

Python3, 183 bytes: ...
Ajax1234's user avatar
  • 7,131
6 votes

Construct the point with two segments

Charcoal, 38 bytes NθNηNζ≔⁺׳θζε≔⁻⊗θ×ε⊖⊗ζδI⟦ε⁰δ⊗ηε¹δ⊕⊗⁻ηζ Try it online! Link is to verbose version of code. Takes (a/b,c/b) as ...
Neil's user avatar
  • 170k

Top 50 recent answers are included