symbolics/questions.rst
author amit
Wed, 13 Oct 2010 17:26:45 +0530
changeset 321 2e49b1b72996
child 342 588b681e70c6
permissions -rw-r--r--
adding questions for all other LO needs to be cleaned

Objective Questions
-------------------

.. A mininum of 8 questions here (along with answers)

1. How do you define a name 'y' as a symbol?


   Answer: var('y')

2. List out some constants pre-defined in sage?

   Answer: pi, e ,euler_gamma

3. List the functions for differentiation and integration in sage?

   Answer: diff and integral

4. Get the value of pi upto precision 5 digits using sage?

   Answer: n(pi,5)

5.  Find third order differential of function.

    f(x)=sin(x^2)+exp(x^3)

    Answer: diff(f(x),x,3) 

6. What is the function to find factors of an expression?

   Answer: factor

7. What is syntax for simplifying a function f?

   Answer f.simplify_full()

8. Find the solution for x between pi/2 to pi for the given equation?
   
   sin(x)==cos(x^3)+exp(x^4)
   find_root(sin(x)==cos(x^3)+exp(x^4),pi/2,pi)

9. Create a simple two dimensional matrix with two symbolic variables?

   var('a,b')
   A=matrix([[a,1],[2,b]])

Larger Questions
----------------

.. A minimum of 2 questions here (along with answers)


2. Question 2