Les

190 Reputation

11 Badges

9 years, 224 days

MaplePrimes Activity


These are questions asked by Les

The following illustrates a way to edit code when in Standard Worksheet.  Is there a bettery way?Thanks in advance,

Les

Maple 2015, Windows 7 Pro

Notice the printout of the following example.  The true/false Maple evaluations are incorrect because I do not know what TYPE command to put in the printf expression.  However, the format of the printout is what I want.

restart;
r:= [17=15,16<17,17>18]:
printf("%{}9a\n\n%{}9a\n\n", <r>,<type~(r,anything)>)



  17 = 15   16 < 17   18 < 17

     true      true      true

In this second example the Maple evaluations of the statements are correct, but I want the print format to flow accross the page rather than down the page.

restart;
for r in [17 = 15, 16 < 17,18 < 17]
do
printf("%{}9a\n\n%{}9a\n\n",<r>,<evalb(r)>)
end do;
  17 = 15

    false

  16 < 17

     true

  18 < 17

    false

Could someone show me how to modify the second example so that the printout will flow across the screen rather than down the screen.  Thanks in advance, Les  PS I'd like to keep the loop if possible.

this module looks at the numbers in the list and reports "true" if they are nonnegint (whole numbers).  is there a way to make the printout go across the page instead of down?

                               -3
                             false
                              -2.5
                             false
                               0
                              true
                               1
                              true
                               3
                               -
                               2
                             false
                               Pi
                             false
                              (1/2)
                             5     
                             false
thanks in advance!

les

5 6 7 8 Page 7 of 8