|
> 2/5 + 3/7;
|
Comments:
|
> 4*(2/9)^5;
> 50!;
> 3^500;
|
Comments:
|
> factor(x^3-6*x^2-19*x+84);
> (a+b)^5;
> expand(%);
|
Comments:
|
> parity:=proc(n) > if(irem(n,2)=0) then RETURN(Even); > else RETURN(Odd); > fi; > end: |
Comments:
To test our function, we type
|
> parity(23);
Odd > parity(122); Even |
Click here to read more about the if .. then .. else statement.