Algebraic Computation


In[1]:= x = 4 
Out[1]= 4 

In[2]:= x^2 + 1 
Out[2]= 17 

In[3]:= x =. 

In[4]:= Expand[(x^2 - 2 y + 1) (x - 4)]
                    2    3
Out[4]= -4 + x - 4 x  + x  + 8 y - 2 x y

In[5]:= Factor[%]
                       2
Out[5]= (-4 + x) (1 + x  - 2 y)

In[6]:= Simplify[x^2 - 2x + 1]
                2
Out[6]= (-1 + x)

In[7]:= 1 + 2x /. x-> 2
Out[7]= 5

In[8]:= x + y /. {x -> a, y -> 2 - b}
Out[8]= 2 + a - b

http://math.arizona.edu/~swig/documentation/mathematica/alg_comp.php
Last modified: Fri, 14 Dec 2007 15:50:52 -0700
E-mail: swig@math.arizona.edu
Valid XHTML 1.0! Valid CSS!