Math 152

Office Hour: Tuesday 2:50-3:50pm @ BLOC 610B

Lab

Jupyter Notebook

  • You will use a Jupyter Notebook to write and run python code.

  • In Calclab , Jupyter is located under "Applications/Mathematics" in the toolbar.

  • You can install Anaconda to your own laptop.

SymPy command documentations

Work in teams

  • Each team should have 5-6 members


Lab Homework Submission

  • When you have finished, convert your notebook to PDF using the following steps:

    1. Select "File/Print Preview"

    2. Print the resulting screen (Ctrl-P) and select "Save as PDF" as the printer.

  • Team member's names should be entered at the beginning of the file (see the template for more details).

  • Do any hand/setup work on scratch paper, which will not be submitted. All computational aspects of each problem must be done in Python.


Lab Homework


Useful Commands :

  1. matplotlib notebook ---- for calclab desktop to plot (probably not necessary on your laptop

  2. init_printing()----for pretty printing

  3. symbols: https://docs.sympy.org/latest/tutorial/intro.html#a-more-interesting-example

(NOTE: For the case we need to assume x is positive, simply add the option positive=True in the symbols command will take care of this).

  1. print: https://docs.python.org/3/library/functions.html#print

  2. plot (symbolic): https://docs.sympy.org/latest/modules/plotting.html#plotting-function-reference

  3. plot (numeric) [The "shortcut command" to call matplotlib.pyplot.plot: "as plt"]: https://matplotlib.org/tutorials/introductory/pyplot.html

  4. extend: https://docs.sympy.org/latest/modules/plotting.html#sympy.plotting.plot.Plot.extend

  5. evalf: https://docs.sympy.org/latest/tutorial/basic_operations.html#evalf

  6. for: (list comprehension) https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions

  7. while(): https://docs.python.org/3/reference/compound_stmts.html#the-while-statement

  8. append(): https://docs.python.org/3/tutorial/introduction.html?highlight=append#lists

  9. limit(): https://docs.sympy.org/latest/tutorial/calculus.html#limits

  10. .simplify(): https://docs.sympy.org/latest/tutorial/simplification.html#simplify

  11. summation() [symbolic summation to obtain the partial sums of the power series ]: https://docs.sympy.org/latest/modules/concrete.html#sympy.concrete.summations.summation

Recitation

  • 35 minutes reviewing the material, and then 15 minutes for the quiz.

  • The review problems will be extracted from WebAssign practice problems.

  • Email me any specific homework questions you may have before recitation class at wangmin@math.tamu.edu.