I have two functions, the latter of which is dependent on the results of the first. They are both mathematical functions using floats.
The gist of the two functions are:
def function1(a,aa,b,bb):
# get result z from a and b
# get error in result, zz, from raw errors, aa and bb
print (z,zz)
def function2(z,zz,c,cc):
# get result x from z and c
# get error in result, xx, from zz and cc
print (x,xx)
With a, b, and c being measured variables defined outside of the functions With aa, bb, and c being the errors in the measured variables, also defined outside of the functions.
After defining the functions, I write the following command:
function2(function1(a,aa,b,bb),c,cc)
I am hoping that function1 would produce two results (z, zz) and they would be accepted as the first two parameters of function2.
Instead, I get the error "TypeError: function2() missing 1 required positional argument: 'cc'
So I assume that function1 is only producing one result at the end. How do I fix this?
Full code here: http://tinyurl.com/sof-typeerror