6:26 AM

products and expansions

1.If there are algebraic functions which are needed to be multiplied,then simply writing the expressions and pressing enter won't give you the answer.Rather it will show the same as the input.

Solution:-
Firstly you have to define the variables and for finding out the product of two expressions we will use the function expand().
       eg.,
              >> syms x y
              >> expand((x+y)*(x-y))
gives you

ans =

x^2-y^2

2.Now in order to factorize an algebraic expression we use the function factor()
   eg.,
         >> syms x y
         >> factor(x^2-y^4)
gives you
ans =

(x-y^2)*(x+y^2)

3.Lastly in order to find out the quotient when an algebraic expression is divided by another, we use the simplify() function.

   eg.,>> simplify((x^3-y^3)/(x-y))

The solution is :
ans =

x^2+x*y+y^2
But in order to get any expression in its simplest form we use simple() function sometimes.

  
    
PLEASE LEAVE A COMMENT :)

0 comments:

Post a Comment