Skip to content
Snippets Groups Projects
Test.mmt 1.19 KiB
Newer Older
  • Learn to ignore specific revisions
  • Paul-Walcher's avatar
    Paul-Walcher committed
    
    /T Miscellaneous scrolls for playing around/testing that don't have a good home yet  ❚
    namespace http://mathhub.info/FrameIT/frameworld ❚
    fixmeta ?FrameworldMeta ❚
    
    mariuskern's avatar
    mariuskern committed
    theory Test =
        meta ?MetaAnnotations?problemTheory  ?Test/Problem ❙
        meta ?MetaAnnotations?solutionTheory ?Test/Solution ❙
    
    Paul-Walcher's avatar
    Paul-Walcher committed
        theory Problem =
            P: point
             ❘ meta ?MetaAnnotations?label "P"
             ❘ meta ?MetaAnnotations?description "Some arbitrary input point"
    
            Q: point
             ❘ meta ?MetaAnnotations?label "Q"
             ❘ meta ?MetaAnnotations?description "Some other arbitrary input point"
    
    
        theory Solution =
    
    mariuskern's avatar
    mariuskern committed
            include ?Test/Problem ❙
            meta ?MetaAnnotations?label "Test" ❙
            meta ?MetaAnnotations?description s"Our Test scroll that given two points ${lverb P} and ${lverb Q} computes the Test of the line ${lverb P Q}." ❙
            Test: point
    
    Paul-Walcher's avatar
    Paul-Walcher committed
                    ❘ = ⟨0.5 ⋅ (P _x + Q _x), 0.5 ⋅ (P _y + Q _y), 0.5 ⋅ (P _z + Q _z)⟩
                    ❘ meta ?MetaAnnotations?label s"Mid[${lverb P Q}]"
    
    mariuskern's avatar
    mariuskern committed
                    ❘ meta ?MetaAnnotations?description s"The Test between points ${lverb P} and ${lverb Q}."
    
    Paul-Walcher's avatar
    Paul-Walcher committed