Category Archives: Python

3D Printing a dome house

I’ve ported most of Geodome codes in Python 3.4.   I’ll release the program under GPLv3 license soon.  The program  requires Python 3.x and OpenSCAD.   Assembly diagram of domes

Posted in GNU/Linux, Python, Science and technologies | Tagged , , , , | Leave a comment

Extracting numbers using regular expression

It took hours to understand how the regular expression works. I briefly explains the symbols in the codes. . any single character ? zero or one of the previous character + one or more of the previous character * zero … Continue reading

Posted in Python | Tagged , , , | Leave a comment

Build IPython for Python 3.x

I use IPython as SymPy interface which serves as command-line CAS (Computer Algebra System) application. It’s one of critical software I depend on whenever I study mathematics. I decided to uprade IPython for Python 3.x because I felt making Python … Continue reading

Posted in GNU/Linux, Python | Tagged , , , , , , , , , | 1 Comment

Starting ipython for interactive sympy

$ ipython –pylab Python 2.7.10+ (default, Oct 10 2015, 09:11:24) Type “copyright”, “credits” or “license” for more information. IPython 2.3.0 — An enhanced Interactive Python. ? -> Introduction and overview of IPython’s features. %quickref -> Quick reference. help -> Python’s … Continue reading

Posted in GNU/Linux, Python | Tagged , , , | Leave a comment

ztouch – create empty files

Out of necessity I built a simple program that create many empty files. I put few examples how to use it in the code. Below command create exactly 1,000 empty files which mimic Nikon D200’s image files. The first file … Continue reading

Posted in GNU/Linux, Python | Tagged , , , , , , | 1 Comment

sympy – find equations for the lines that are tagent and normal to the curve at (1, 2).

Chapter 2 Practice Exercises, p183

Posted in Python | Tagged , , , , , | Leave a comment

sympy – changing graph color of plot()

plot() handles color names for RGB color codes. SymPy document doesn’t explain it clearly or sample codes don’t exit. Here is another example.

Posted in Python | Tagged , , , , , , | 1 Comment