原创 SymPy學習之Numeric Computation

Subs/evalf >>> from sympy import * >>> from sympy.abc import x >>> expr = sin(x)/x >>> expr.evalf(subs={x: 3.14}) 0.00

原创 SymPy學習之Logic Module

Forming logical expressions >>> from sympy import * >>> x, y = symbols('x,y') >>> y | (x & y) Or(And(x, y), y) >>> x |

原创 網絡安全之防火牆

C:/>netsh netsh>firewall netsh firewall>show show allowedprogram - 顯示防火牆允許的程序配置。 show config - 顯示防火牆配置。 show currentp

原创 網絡安全之netstat

顯示協議統計信息和當前 TCP/IP 網絡連接。 NETSTAT [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval] -a 顯示所有連接和偵

原创 SymPy學習之Elementary

sympy.functions.elementary.complexes re #返回複數實數部分 >>> from sympy import re, im, I, E >>> from sympy.abc import x, y >

原创 SymPy學習之Advanced Expression Manipulation

Understanding Expression Trees >>> from sympy import * >>> x, y, z = symbols('x y z') >>> expr = x**2 + x*y >>> srepr

原创 SymPy學習之Concrete Mathematics

Sum >>> from sympy.abc import i, k, m, n, x >>> from sympy import Sum, factorial, oo, IndexedBase, Function >>> Sum(k,

原创 SymPy學習之Gotchas and Pitfalls

Equals Signs (=) Single Equals Sign #單個等號用於賦值 >>> from sympy.abc import x, y >>> a = x - y >>> print(a) x - y Double

原创 SymPy學習之Symbolic Integrals

Examples >>> from sympy import * >>> init_printing(use_unicode=False, wrap_line=False, no_global=True) >>> x = Symbol(

原创 SymPy學習之Calculus

>> from sympy import * >>> x, y, z = symbols('x y z') >>> init_printing(use_unicode=True) Derivatives #導數 >>> diff(cos

原创 SymPy學習之Geometry Module

Example Usage >>> from sympy import * >>> from sympy.geometry import * >>> x = Point(0, 0) >>> y = Point(1, 1) >>> z =

原创 SymPy學習之Numerical evaluation

Basics #N(expr, <args>)函數與sympify(expr).evalf(<args>)等價 >>> from sympy import * >>> N(sqrt(2)*pi) 4.44288293815837 >>>

原创 SymPy學習之Solvers

>>> from sympy import * >>> x, y, z = symbols('x y z') >>> init_printing(use_unicode=True) A Note about Equations #Sy

原创 sympy學習之Matrices

>> from __future__ import division >>> from sympy import * #行列 >>> Matrix([[1, -1], [3, 4], [0, 2]]) ⎡1 -1⎤ ⎢ ⎥ ⎢3

原创 SymPy學習之Simplification

Simplification >>> from sympy import * >>> x, y, z = symbols('x y z') >>> init_printing(use_unicode=True) simplify #對