Maxima – 15 – Command line – funzioni e variabili per visualizzazione – 4

Continuo da qui, copio dal Reference Manual, PDF scaricabile da qui, sono a p.51.

Default value: 10
obase is the base for integers displayed by Maxima.

obase may be assigned any integer between 2 and 36 (decimal), inclusive. When obase is greater than 10, the numerals comprise the decimal numerals 0 through 9 plus capital letters of the alphabet A, B, C, ..., as needed. A leading 0 digit is displayed if the leading digit is otherwise a letter. The numerals for base 36, the largest acceptable base, comprise 0 through 9, and A through Z.

(%i1) obase : 2;
(%o1)                                 10
(%i10) 2^8 - 1;
(%o10)                             11111111
(%i11) obase : 8;
(%o3)                                 10
(%i4) 8^8 - 1;
(%o4)                              77777777
(%i5) obase : 16;
(%o5)                                 10
(%i6) 16^8 - 1;
(%o6)                              0FFFFFFFF
(%i7) obase : 36;
(%o7)                                 10
(%i8) 36^8 - 1;
(%o8)                              0ZZZZZZZZ

Default value: false
When pfeformat is true, a ratio of integers is displayed with the solidus (forward slash) character, and an integer denominator n is displayed as a leading multiplicative term 1/n.

(%i1) pfeformat: false$

(%i2) 2^16/7^3;
(%o2)                                -----
(%i3) (a+b)/8;
                                     b + a
(%o3)                                -----
(%i4) pfeformat: true$

(%i5) 2^16/7^3;
(%o5)                              65536/343
(%i6) (a+b)/8;
(%o6)                            (1/8) (b + a)

Default value: false
When powerdisp is true, a sum is displayed with its terms in order of increasing power. Thus a polynomial is displayed as a truncated power series, with the constant term first and the highest power last.

By default, terms of a sum are displayed in order of decreasing power.

(%i7) powerdisp : true;
(%o7)                                true
(%i8) x^2+x^3+x^4;
                                  2    3    4
(%o8)                            x  + x  + x
(%i9) powerdisp : false;
(%o9)                                false
(%i10) x^2+x^3+x^4;
                                  4    3    2
(%o10)                           x  + x  + x

print(expr_1, ... , expr_n)
Evaluates and displays expr_1, ..., expr_n one after another, from left to right, starting at the left edge of the console display.

The value returned by print is the value of its last argument. print does not generate intermediate expression labels.

See also display, disp, ldisplay, and ldisp. Those functions display one expression per line, while print attempts to display two or more expressions per line.

To display the contents of a file, see printfile.

(%i11) r: print ("(a+b)^3 is", expand ((a+b)^3), 
                "log (a^10/b) is", radcan (log (a^10/b)))$
            3        2      2      3
(a+b)^3 is b  + 3 a b  + 3 a  b + a  log (a^10/b) is 10 log(a) - log(b)
(%i12) r;
(%o12)                        10 log(a) - log(b)
(%i13) disp ("(a+b)^3 is", expand ((a+b)^3), 
                "log (a^10/b) is", radcan (log (a^10/b)))$
                                  (a+b)^3 is

                            3        2      2      3
                           b  + 3 a b  + 3 a  b + a

                                log (a^10/b) is

                              10 log(a) - log(b)

Default value: true
When sqrtdispflag is false, causes sqrt to display with exponent 1/2.

(%i1) sqrtdispflag;
(%o1)                                true
(%i2) sqrt(100);
(%o2)                                 10
(%i3) sqrt(2);
(%o3)                               sqrt(2)
(%i4) sqrtdispflag : false;
(%o4)                                false
(%i5) sqrt(100);
(%o5)                                 10
(%i6) sqrt(2);
(%o6)                                2

Default value: false
When stardisp is true, multiplication is displayed with an asterisk * between operands.

(%i7) 7 * (a + b);
(%o7)                              7 (b + a)
(%i8) stardisp : true;
(%o8)                                true
(%i9) 7 * (a + b);
(%o9)                              7*(b + a)

Default value: false
When ttyoff is true, output expressions are not displayed. Output expressions are still computed and assigned labels. See labels.

Text printed by built-in Maxima functions, such as error messages and the output of describe, is not affected by ttyoff.

Domanda: ma i ggiovani usano l’espressione “tty“?

(%i1) ttyoff;
(%o1)                                false
(%i2) 3 + 5;
(%o2)                                  8
(%i3) ttyoff : true;

(%i4) 3 + 5;

(%i5) (%o4);

(%i6) ttyoff : false;
(%o6)                                false
(%i7) (%o4);
(%o7)                                  8

Posta un commento o usa questo indirizzo per il trackback.



Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo di

Stai commentando usando il tuo account Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

Questo sito utilizza Akismet per ridurre lo spam. Scopri come vengono elaborati i dati derivati dai commenti.

%d blogger hanno fatto clic su Mi Piace per questo: