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
SymPy 1.3 documentation tutorial (includes a Quick search box).
Symbolic Mathematics in Python by Fabian Pedregosa
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:
Select "File/Print Preview"
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
Lab 2 (Due: Feb 5 )
Useful Commands :
matplotlib notebook ---- for calclab desktop to plot (probably not necessary on your laptop
init_printing()----for pretty printing
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).
print: https://docs.python.org/3/library/functions.html#print
plot (symbolic): https://docs.sympy.org/latest/modules/plotting.html#plotting-function-reference
plot (numeric) [The "shortcut command" to call matplotlib.pyplot.plot: "as plt"]: https://matplotlib.org/tutorials/introductory/pyplot.html
extend: https://docs.sympy.org/latest/modules/plotting.html#sympy.plotting.plot.Plot.extend
evalf: https://docs.sympy.org/latest/tutorial/basic_operations.html#evalf
for: (list comprehension) https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions
while(): https://docs.python.org/3/reference/compound_stmts.html#the-while-statement
append(): https://docs.python.org/3/tutorial/introduction.html?highlight=append#lists
limit(): https://docs.sympy.org/latest/tutorial/calculus.html#limits
.simplify(): https://docs.sympy.org/latest/tutorial/simplification.html#simplify
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.