# [Maxima] Mockmma

Sheldon Newhouse sen1 at math.msu.edu
Sun Jun 28 18:16:59 CDT 2009

Richard Fateman wrote:
> Sheldon Newhouse wrote:
>
>> ..snip..
>> MAXIMA> (load "init2.lisp")
>>
>> T
>> MAXIMA> (tl)
>> Mock-Mma (Sun-4) 1.7 (Jun-8-2009) [With pre-loaded data]
>> Gnu General Public License
>> -- Terminal graphics initialized --
>> In[1] :=
>> In[2] := Expand[(1+x)^2]
>>
>>                        2
>> OUT[2] = EXPAND[(1 + X) ]
>> In[3] := Solve[x^2-1==0,x]
>>
>>                            2
>> OUT[3] = SOLVE[EQUAL[-1 + X , 0], X]
>>
>> What do I need to do?
>>
>>
>
> I think this result is correct. If you want the output to look different
> from the input,
> you need to use commands that are implemented in Mockmma.  There is no
> expand or solve. Try Rat[ (1+x)^2+1].
>
> I think various parts are not automatically loaded, e.g. simplify.
>
>
>
>
> .
>
>
Rat[(1+x)^ + 1]
did work.
How can I find out what commands have already been implemented?

For instance,  the function N[\cdot] does not seem to work.  Also,
floating point numbers can't be handled (or I don't know how to do it).

In[30] := Log[2]

OUT[30] = 0.69314718055994529
In[31] := Log[2 + 1/100]

OUT[31] = 0.69813472207098426
In[32] := Log[2.1]

OUT[32] = LOG[2.1/10]
In[33] := N[2.1]

OUT[33] = N[2.1/10]
In[34] := 2 + 1/10;

In[35] := 2.1;

In[36] := 2 + 0.1

OUT[36] = 2 + 0.1/10
In[37] := Log[%]

OUT[37] = LOG[2 + 0.1/10]
In[38] := 2 + 1/10;

In[39] := x=2

OUT[39] = SET[X, 2]
In[40] := y=1/10

OUT[40] = SET[Y, 1/10]
In[41] := Log[x+y]

OUT[41] = LOG[X + Y]
In[42] := Log[21/10]

OUT[42] = 0.74193734472937733
In[43] := N[%,30]

OUT[43] = N[0.74193734472937733, 30]

-sen