-
Recent Posts
Recent Comments
Archives
- March 2020
- May 2019
- December 2018
- June 2018
- December 2017
- October 2017
- July 2017
- June 2017
- May 2017
- March 2017
- February 2017
- January 2017
- August 2016
- July 2016
- May 2016
- April 2016
- March 2016
- February 2016
- December 2015
- November 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- March 2015
- February 2015
- January 2015
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
Categories
-
Join 53 other subscribers
MyCalendar
Meta
Monthly Archives: January 2013
Class and Subclass in Python
Defining Classes and Subclasses in python is very easy and interesting, I am providing some examples to show the templates: # ———————— code —————————————————— # first define the class class Employee: ‘Common base class for all employees’ … Continue reading
Posted in Linux, programming, Python
Tagged class, code, easy, programming, python, source, step by step, subclass, tutorial
1 Comment
100 lines of simple code to know numpy better (Python)
“”” the code is written and tested in Python 2.7, and it just needs NumPy library to be installed “”” import numpy as np # define arrays a = np.array([1,4,5,6],float) print a, type(a) a[1] = 20 print a # define … Continue reading
Posted in Linux, programming, Python, Statistics
Tagged 2.7, code, numpy, python, sample, simple, tutorial
Leave a comment
Finding root of function using Python
Here I am using python 2.7.3 and I have added NumPy and SciPy libraries to my Python, You can find the root of a function easily like this: >>> import numpy as np … Continue reading