Home / plot command in python / Python Lab Command Library .edu

# Python Lab Command Library .edu - plot command in python

Python Lab Command Library
MATH 151, Engineering Math I, Summer 2019
Commands introduced for Lab 8:
arange() Generates an equally- https://docs.scipy.org/doc/numpy/reference/generated/numpy.arange.html
spaced array for numeric
computation/plotting
Commands introduced for Lab 5:
.extend Combine graphs into one https://docs.sympy.org/latest/modules/plotting.html
figure #sympy.plotting.plot.Plot.extend
idiff() Implicit differentiation of https://docs.sympy.org/latest/ modules/sympy/geometry/util.html
an expression (set = 0). (NOTE: Use Ctrl-F to find the idiff syntax and examples as they
are far down the page.)
plot implicit() Plot an implicit expres- https:docs.sympy.org/latest/modules/plotting.html
sion (set = 0) or an equa- #sympy.plotting.plot implicit.plot implicit
tion.
plot parametric() Plot a parametrized https://docs.sympy.org/latest/modules/plotting.html#plotting-function-
curve. reference
ylim Sets the ymin and ymax https://docs.sympy.org/0.7.5/modules/mpmath/plotting.html
of a symbolic plot (within
the plot command)
Commands introduced for Lab 4:
Rational Define a rational expres- https://docs.sympy.org/latest/tutorial/gotchas.html#two-final-notes-and
sion you wish to keep
rather than actually di-
viding.
Commands introduced for Lab 3:
diff Differentiate an expres- https://docs.sympy.org/latest/tutorial/calculus.html#derivatives
sion
Commands introduced for Lab 2:
for Create a loop to do some- https://docs.python.org/3/tutorial/datastructures.html#list-
thing multiple times. comprehensions
limit() Calculate the limit of an https://docs.sympy.org/latest/tutorial/calculus.html#limits
expression.
plot() Plot a function, or multi- https://docs.sympy.org/latest/modules/plotting.html#plotting-function-
ple functions. reference
Commands introduced for Lab 1:
.dot() Finds the dot prod- https://docs.sympy.org/latest/ modules/sympy/matrices/matrices.html
uct of two vectors #MatrixBase.dot
(FIRST.dot(SECOND) )
.evalf() Evaluate to floating point https://docs.sympy.org/latest/tutorial/basic operations.html#evalf
Matrix() Create a matrix or vector https://docs.sympy.org/latest/tutorial/matrices.html
.norm() Finds the magnitude of a https://docs.sympy.org/latest/ modules/sympy/matrices/matrices.html
vector #MatrixBase.norm
plot parametric() Plot a parametrized curve https://docs.sympy.org/latest/modules/plotting.html#plotting-function-
reference
print Display both text output https://docs.python.org/3/library/functions.html#print
and variable values
solve() Symbolically solve an https://docs.sympy.org/latest/modules/solvers/solvers.html
equation
subs Substitute value(s) into https://docs.sympy.org/latest/tutorial/basic operations.html#substitution
an expression
symbols() Defines a variable to be https://docs.sympy.org/latest/tutorial/intro.html#a-more-interesting-
symbolic example
Trig List of Trig and Inverse https://docs.scipy.org/doc/numpy/reference/routines.math.html
Trig Functions
1

How to execute a command prompt command from Python?Part 2 Part 2 of 3: Running a Python FileClick the Windows logo in the bottom-left corner of the screen. The Start menu will pop up.Search for Command Prompt. Type in cmd to do so.Command Prompt. It's at the top of the Start menu. ...Switch to your Python file's directory. ...Enter the "python" command and your file's name. ...Press ↵ Enter. ...

#### Pdf INFO

Title:
Subject:
Keywords:
Author:
Creator: LaTeX with hyperref package
Producer: pdfTeX-1.40.18
CreationDate: Fri Jul 19 15:03:41 2019
ModDate: Fri Jul 19 15:03:41 2019
Tagged: no
Form: none
Pages: 1
Encrypted: no
Page size: 612 x 792 pts (letter) (rotated 0 degrees)
File size: 78099 bytes
Optimized: yes