Contents    Page-10    Prev    Next    Page+10    Index   

Physics Queries


% clojure
user=> (load-file "cs378/physics.clj")
user=> (load-files)
user=> (gramcom grammar)

user=> (phys '(what is the area of a circle
               with radius = 2))

(calculate area (object circle (radius 2)))
12.566370614

user=> (phys '(what is the circumference of
               a circle with an area of 100))

(calculate circumference (object circle (area 100)))
35.44907701760372

user=> (phys '(what is the power of a lift with
              mass = 100 and height = 6
              and time = 10))

(calculate power (object lift (mass 100)
                              (height 6) (time 10)))
588.399