Source code for myproject.module1
import numpy as np
[docs]def summation(a: int, b: int):
"""
Compute the arithmetic sum of two `int`.
Parameters
----------
a : `int`
integer number, if `a` is not `int` a conversion is attempted
b : `int`
integer number, if `a` is not `int` a conversion is attempted
Returns
-------
m : `int`
See Also
--------
difference : subtract two numbers
sum
Notes
-----
The arithmetic mean is the sum of the elements along the axis divided
by the number of elements.
Note that for floating-point input, the mean is computed using the
same precision the input has. Depending on the input data, this can
cause the results to be inaccurate, especially for `float32` (see
example below). Specifying a higher-precision accumulator using the
`dtype` keyword can alleviate this issue.
By default, `float16` results are computed using `float32` intermediates
for extra precision.
Examples
--------
>>> a = summation(3,5)
>>> a
8
"""
return a+b