Maxima Command Line Interface (CLI)
Basic operations
kodingwindow@kw:~$ maxima
...
(%i1) 50!;
(%o1)  30414093201713378043612608166064768844377641568960512000000000000

(%i2) 2^64;
(%o2)                        18446744073709551616

(%i3) f(x):=x^8;
                                           8
(%o3)                             f(x) := x

(%i4) f(10);
(%o4)                              100000000

(%i5) f(5);
(%o5)                               390625

(%i6) sin(%pi/3);
                                    sqrt(3)
(%o6)                               -------
                                       2

(%i7) factor(x^2+x-20);
(%o7)                           (x - 4) (x + 5)
Units
(%i8) load(unit);
******************************************************************* 
*                       Units version 0.50                        * 
*          Definitions based on the NIST Reference on             * 
*              Constants, Units, and Uncertainty                  * 
*       Conversion factors from various sources including         * 
*                   NIST and the GNU units package                * 
******************************************************************* 
 
Redefining necessary functions... 
Initializing unit arrays... 
Done. 
(%o8)        /usr/share/maxima/5.41.0/share/contrib/unit/unit.mac

(%i9) [N,Pa,J,W,C,V,F];
                                  2      2           2   2  4
                  kg m   kg   kg m   kg m        kg m   A  s
(%o9)            [----, ----, -----, -----, A s, -----, -----]
                    2      2    2      3            3       2
                   s    m s    s      s          A s    kg m

(%i10) [Ohm,T,H,lm,lx];
                              2            2
                          kg m    kg   kg m       cd
(%o10)                   [-----, ----, -----, cd, --]
                           2  3     2   2  2       2
                          A  s   A s   A  s       m

(%i11) mass:5*kg $ acc:1.8*m/s^2 $ force:mass*acc;
                                       kg m
(%o13)                            (9) (----)
                                         2
                                        s
(%i14) mass:15*kg $ velocity:5*m/s $ KE=0.5*mass*velocity^2;
                                               2
                                           kg m
(%o16)                       KE = (187.5) (-----)
                                             2
                                            s

(%i17) setunits([N,J]);
(%o17)                               done

(%i18) [(5*kg)*(26.8*m/s^2),(1.5*N)*(3*m)];
                                          9
(%o18)                       [(134) (N), (-) (J)]
                                          2

(%i19) uforget([N,J]);
(%o19)                          [false, false]

(%i20) [(5*kg)*(26.8*m/s^2),(1.5*N)*(3*m)];
                                                   2
                                   kg m    9   kg m
(%o20)                   [(134.0) (----), (-) (-----)]
                                     2     2     2
                                    s           s

(%i21) CTRL+D to Exit;
Advertisement