Changeset 011c29e


Ignore:
Timestamp:
Jun 29, 2024, 5:22:57 PM (4 months ago)
Author:
JiadaL <j82liang@…>
Branches:
master
Children:
64eeb06
Parents:
73d0e3f4 (diff), bc07190 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
doc/theses/jiada_liang_MMath
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/jiada_liang_MMath/CFAenum.tex

    r73d0e3f4 r011c29e  
    429429        @choose( rp )@ {                                                $\C{// implicit breaks}$
    430430          case MERCURY, VENUS, EARTH, MARS:
    431                 sout | @label( rp )@ | "is a rocky planet";
     431                sout | @rp@ | "is a rocky planet";
    432432          case JUPITER, SATURN, URANUS, NEPTUNE:
    433                 sout | label( rp ) | "is a gas-giant planet";
     433                sout | rp | "is a gas-giant planet";
    434434          default:
    435                 sout | label( rp ) | "is not a planet";
     435                sout | rp | "is not a planet";
    436436        }
    437437        for ( @p; Planet@ ) {                                   $\C{// enumerate}$
    438                 sout | "Your weight on" | ( @p == MOON@ ? "the" : " " ) | label( p )
     438                sout | "Your weight on" | ( @p == MOON@ ? "the" : " " ) | p
    439439                           | "is" | wd( 1,1,  surfaceWeight( p, earthMass ) ) | "kg";
    440440        }
  • doc/theses/jiada_liang_MMath/test2.cfa

    r73d0e3f4 r011c29e  
    3737        choose( rp ) {                                                                          // implicit breaks
    3838          case MERCURY, VENUS, EARTH, MARS:
    39                 sout | label( rp ) | "is a rocky planet";
     39                sout | rp | "is a rocky planet";
    4040          case JUPITER, SATURN, URANUS, NEPTUNE:
    41                 sout | label( rp ) | "is a gas-giant planet";
     41                sout | rp | "is a gas-giant planet";
    4242          default:
    43                 sout | label( rp ) | "is not a planet";
     43                sout | rp | "is not a planet";
    4444        }
    4545
    4646        for ( p; Planet ) {                                                                     // enumerate
    47                 sout | "Your weight on" | ( p == MOON ? "the" : " " ) | label( p )
     47                sout | "Your weight on" | ( p == MOON ? "the" : " " ) | p
    4848                         | "is" | wd( 1,1,  surfaceWeight( p, earthMass ) ) | "kg";
    4949        }
     50       
    5051}
Note: See TracChangeset for help on using the changeset viewer.