Push code to Github

git init "Folder_Name" 
git add -A 
git commit -m "first commit"
git remote add origin https://github.com/amrit3701/SageLaTeX.git
git push -u origin master

Configure sagetex.sty or Make SageTeX known to TeX

Following are the commands in which you should be able configure sagetex.sty

kpsewhich -var-value=TEXMFHOME
cp -R SAGE_ROOT/local/share/texmf/tex TEXMFHOME

where SAGE_ROOT is, as usual, replaced with the location of your Sage installation and TEXMFHOME is the result of the kpsewhich command above.

Source: http://doc.sagemath.org/html/en/installation/sagetex.html

Solving Differential Equation Representing Simple Harmonic Motion in SageMath

 print "Solving differential equation representing Simple Harmonic 

#Declaring mass, time and spring constant as m, t and k 

#Declaring displacement is fuction of time
 x = function('x',t)

#Assuming spring constant and mass are greater than zero

#Writing differential equation
 de= diff(x,t,2)+(k*x)/m

#Solving differential equation
 z = desolve(de,dvar=x,ivar=t)

#printing the result of differential equation

Opencv Installtion

Finally I installed opencv2.4.9 version on our laptop.

The given below link fully guided for installation of opencv . This link have explain all the steps of installation of opencv and why they are used in installing of opencv as step by step.


Unmet dependencies

After wasted two days on installation of libraries files for opencv I am getting a little bit off help from my elder brother Harman. He is explaining about the versions of libraries files and they also tells that I am not following the latest installation documentation of opencv.

I am trying to install libgtk2.0-dev as mentioned in installation documentation of opencv and error occurred  as

The following packages have unmet dependencies:
  libgtk2.0-dev : Depends: libpango1.0-dev (>= 1.20) but it is not going to be installed
  Depends: libcairo2-dev (>= 1.6.4-6.1) but it is not going to be installed
  E: Unable to correct problems, you have held broken packages.

But when I trying the latest version of libgtk-3-0 all dependencies is solved and it is installed in my laptop.

The below following links which is used in installation of libraries files are given below :



When I’m installing libraries file of opencv error occured “Unmet dependencies for this package” .