File:Pythagoras (2).png

Pythagoras_(2).png(176 × 176 pixels, file size: 2 KB, MIME type: image/png)

Description
English: Diagram illustrating Pythagoras theorem proof.

Produced by user Trainspotter using a program he wrote in the IDL language.

Program is listed below in case a modified version needs to be produced. (Program below is public domain, but IDL package itself is payware.)


 a=100. ; side A
 b=70.  ; side B
 m=3.   ; margin around plot
 s=2*m+a+b ; length of side of image
 r=(a+b)/2 ; offset (in each of x,y) from centre of 
           ;     image to corner of triangle
 c=m+(a+b)/2 ; position (in each of x,y) of centre of image
 set_plot,'z'
 device,set_res=[s,s]
 tek_color
 erase,1 ; white bg
 c1=15. ; distance to offset characters to centre
 c2=5.  ; extra y-offset for characters
 d=[[:en:0,0,a,0],[0,b,0,0]]  ; vectors to triangle vertices
 d1=[[:en:a,c1,a],[c1,b,b+1.5*c1]]/2  ; vectors to text labels
 lab=['a','b','c']
 cols=[0,2,4,8] ; predefined indices in tek_color
 rot=[[:en:0,-1],[1,0]] ; 90deg rotation matrix
 ori=[[:en:1,0],[0,1]]  ; current rotation matrix
 for i=0,3 do begin ; loop over triangles
     pos=[c,c]+ori##[-r,-r]  ; corner of triangle (use as plot offset)
     draw=ori##d     ; relative vectors allowing for rotation
     label=ori##d1   ; (likewise)
     plots,pos[0]+draw[*,0],pos[1]+draw[*,1],/device,col=cols[i]
     xyouts,pos[0]+label[*,0],pos[1]+label[*,1]-c2,/device,col=cols[i],lab, $
       align=0.5,charsize=1.2   
     ori=rot##ori
 endfor
 image=tvrd()
 tvlct,rr,gg,bb,/get
 write_png,'pythagoras.png',image,rr,gg,bb
 end
Date 10 June 2003 (original upload date)
Source

Produced by user Trainspotter using a program he wrote in

the IDL language.
Author The original uploader was Trainspotter at English Wikipedia.

Licensing

w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. Subject to disclaimers.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License. Subject to disclaimers.

Original upload log

The original description page was here. All following user names refer to en.wikipedia.
  • 2003-06-10 16:03 Trainspotter 176×176× (2042 bytes) diagram illustrating Pythagoras theorem proof

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current00:18, 25 February 2009Thumbnail for version as of 00:18, 25 February 2009176 × 176 (2 KB)File Upload Bot (Magnus Manske) {{BotMoveToCommons|en.wikipedia|year={{subst:CURRENTYEAR}}|month={{subst:CURRENTMONTHNAME}}|day={{subst:CURRENTDAY}}}} {{Information |Description={{en|Diagram illustrating Pythagoras theorem proof. Produced by user Trainspotter
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Global file usage

The following other wikis use this file: