Category: python
The definite integral over a range (a, b) can be considered as the signed area of X-Y plane along the X-axis. The formula to compute the definite integral is: …
If you want to compute x2 you can easily write a function in Python like this: def sqr(x): return x * x # or x ** 2 If you …
The Scatter Plot is often used to show vivid relations between two variables. Plotting is made very simple and easy in Python using numpy and matplotlib.pylab package. To demonstrate, …
The numpy package is a powerful toolkit for Python. With numpy you can easily do matrix (like Matlab), plot and do other data/numbers/statistics. Suppose you have a two dimensional …
This puzzle is from Leetcode Online Judge and this may appear quite often during interviews. This puzzle asks you to find the minimal sum for a number triangle. You …