Importing Modules into a Python Program

In Python, a module introduces a new namespace and adds functions, classes and variables into your programs, enabling them to do things which they would not be able to without the capabilities imported from the module. more ...







Writing a Python Function

Python has the reputation of being easy to learn. So here is a function in Python to calculate the length of a line in 3D space. Well, it looks almost similar to the one written in Scilab. more ...



C++ valarray

C++ valarray is a class template to represent an array of numerical values. It is versatile and comes with all basic features required for a one-dimensioned array.

Arrays in C++ are identical to those in C. Consequently, operators, such as $+, -, *, /$ are not defined for arrays. C++ classes are a user ...

more ...