Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
restrepo
GitHub Repository: restrepo/ComputationalMethods
Path: blob/master/homework/homework_2018_1_08_1038414799.ipynb
934 views
Kernel: Python 3
%pylab inline import sympy sympy.init_printing()
Populating the interactive namespace from numpy and matplotlib
M=np.matrix([[5.,-4.,0],[-4.,7.,-3.],[0,-3.,5.]])#Matrix Ma=np.column_stack((M,[1.,0,-2]))#Augmented matrix sympy.Matrix(Ma)#Print matrix with sympy
[5.04.00.01.04.07.03.00.00.03.05.02.0]\left[\begin{matrix}5.0 & -4.0 & 0.0 & 1.0\\-4.0 & 7.0 & -3.0 & 0.0\\0.0 & -3.0 & 5.0 & -2.0\end{matrix}\right]