File:Quadrature of rectangle.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 512 × 768 pixels, file size: 3 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description Straightedge and compass construction of a square with the same area as a given oblong by CMG Lee.
    Source Own work
    Author Cmglee

    Python script to find examples with integer coordinates

    #!/usr/bin/env python
    import re, math
    def print_keyval(dic, re_key=r'^[^_]'):
     print('\t'.join(['%s=%s' % (key, dic[key]) for key in dic
                      if not isinstance(dic[key], __builtins__.__class__) and
                         not callable(dic[key]) and re.search(re_key, key)]))
    for  m in range(1, 60 + 1): ## 60 avoids 5-digit x or y
     for n in range(1, m):
      if m & 1 == 1 and n & 1 == 1: continue ## at least one even
      if math.gcd(m, n) > 1       : continue ## coprime
      a = 2 * m * n
      b = m * m - n * n
      c = m * m + n * n
      for (x, y) in [(c + a, b), (c + b, a)]:
       rxy = (x * y) ** 0.5
       if abs(rxy - int(rxy)) < 1e-5: print_keyval(locals())
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following licenses:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    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.
    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.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    2,594 byte

    image/svg+xml

    a47094e51ef7e8503c8a4080092138045938a400

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current14:16, 1 March 2024Thumbnail for version as of 14:16, 1 March 2024512 × 768 (3 KB)wikimediacommons>Cmglee{{Information |Description=Steps to construct a square with the same area as a given oblong by CMG Lee. |Source={{own}} |Date= |Author= Cmglee |Permission= |other_versions= }} Category:Ruler-and-compass construction Category:Rectangles and squares Category:Geometric mean theorem Category:Area

    There are no pages that use this file.