File talk:Fermat Points Proof.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

I saw that it is planned to post the source of the image file here. Please also upload it in SVG format, which is now supported directly by the MediaWiki software. Thanks! -- Duesentrieb(?!) 12:52, 12 September 2005 (UTC)[reply]

Source code

[edit]

Note: Sorry for the delay, I've been busy writing the main article Fermat points lol. One problem: I don't know how to make it in svg, I've great trouble dealing with the ps file generated on window, and currently I've to use some hack, paste the compiled pstrick in a barebone latex, compile it to ps, then use photoshop to export it. I hoped I can use gimp, but it crashed when trying to export, and freehand show only an empty image with a big cross. --Lemontea 13:32, 12 September 2005 (UTC)[reply]

The source code of this image is licensed under GNU Free Documentation License, just as the image itself is. (I know this sentence is redundant ;) )

Feel free to edit and improve the following source code, I know the code is quite dirty lol. --Lemontea 13:32, 12 September 2005 (UTC)[reply]


frame(-2.8, -6, 8.2, 7.5)
B C A triangle(6, 75:, 35:)
C B P equilateral
A C Q equilateral
B A R equilateral
s = segment(A, P)
t = segment(B, Q)
u = segment(C, R)
c = circle(B, A, R)
d = circle(A, C, Q)
e = circle(C, B, P)
F = intersection(line(A, P), line(B, Q))

color(green)
draw(c)
color(cyan)
draw(d)
color(blue)
draw(t)
draw(segment(A, Q))
draw(segment(A, B))
mark(segment(A, B), simple)
mark(segment(A, Q), double)
mark(B, A, Q, simple, 1.2)
color(red)
draw(u)
draw(segment(A, R))
draw(segment(A, C))
mark(segment(A, R), simple)
mark(segment(A, C), double)
mark(R, A, C, simple, 0.8)
color(black)
draw(s)
draw(segment(B, R))
draw(segment(C, Q))
draw(C, B, P)
draw(e, dashed)
draw(F, dot, 1.3)
mark(segment(B, R), simple)
mark(segment(C, Q), double)
mark(segment(B, C), triple)
mark(segment(B, P), triple)
mark(segment(C, P), triple)
mark(C, R, A, double, 1.5)
mark(Q, B, A, double, 1.5)
mark(A, Q, B, triple, 1.5)
mark(A, C, R, triple, 1.5)
mark(B, F, P, dot, 0.8)
mark(B, C, P, dot, 0.8)
label(F, 0.5, 0:)
label(A, 0.5, 90:)
label(B, 0.5, 225:)
label(C, 0.5, 330:)
label(P, 0.3, 270:)
label(Q, 0.3, 0:)
label(R, 0.3, 90:)