summaryrefslogtreecommitdiff
path: root/.config/ipython/profile_default/startup/20-functions.ipy
blob: 615a848bc5b3fa59e5a253df52d3b175d45859f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/ipython

# def exp(x):
#     return sum([
#         x**n / m.factorial(n)
#         for n in range(0, 100)
#     ])
# 
# def tables(from_, to_, rows=10):
#     for table in range(from_, to_+1):
#         for row in range(1, rows+1):
#             print(table, 'x', row, '=', table*row)
#         print()