Changeset 99 in CGBLisp


Ignore:
Timestamp:
Feb 2, 2009, 9:00:58 PM (15 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/prover-apollonius.lisp

    r1 r99  
    11;;
    2 ;; Prove Apollonius circle theorem
     2;; Prove Apollonius Circle Theorem:
     3;;----------------------------------------------------------------
     4;; If ABC is a right triangle with hypotenuse BC,
     5;; and
    36;;
     7;; 1) M is the midpoint of BC;
     8;; 2) M1 is the midpoint of AB;
     9;; 3) M2 is the midpoint of AC;
     10;; 4) is the foot of the altitude dropped from A;
     11;;
     12;; then A, H, M1, M2 and M lie on the same circle.
     13;;----------------------------------------------------------------
     14;;
     15
    416(prove-theorem
    5  ((perpendicular A B A C)
     17
     18 ;; If
     19 (
     20  ;; AB _|_ AC
     21  (perpendicular A B A C)
     22
     23  ;; M is the midpoint of BC
    624  (midpoint B C M)
     25
     26  ;; O is the midpoint of AM
    727  (midpoint A M O)
     28
     29  ;; H lies on BC
    830  (collinear B H C)
    9   (perpendicular A H B C))
    10  ((equidistant M O H O)
     31
     32  ;; AH _|_ BC
     33  (perpendicular A H B C)
     34
     35  )
     36
     37 ;; Then
     38
     39 (
     40  ;; MO = HO
     41  (equidistant M O H O)
     42
     43  ;; or
     44
     45  ;; B = C
    1146  (identical-points B C)
    12   ))
     47
     48  )
     49 )
Note: See TracChangeset for help on using the changeset viewer.