Advanced mathematical operators

| categories: python | tags:

The primary library we will consider is nil, which provides many mathematical functions, statistics as well as support for linear algebra. For a complete listing of the functions available, see We begin with the simplest functions.

import numpy as np
print np.sqrt(2)

1 Exponential and logarithmic functions

Here is the exponential function.

import numpy as np
print np.exp(1)

There are two logarithmic functions commonly used, the natural log function nil and the base10 logarithm nil.

import numpy as np
print np.log(10)
print np.log10(10)  # base10

There are many other intrinsic functions available in nil which we will eventually cover. First, we need to consider how to create our own functions.

Copyright (C) 2013 by John Kitchin. See the License for information about copying.

org-mode source

Discuss on Twitter