I need to calculate the birthdate of an ancestor based on a list of dates and ages he had, the problem is that I stink at circular maths and rotating stuff.
I have this dictionary in python: The left side are dates and the right side after ':' are ages
traces={
'2/2/1985':4,
'27/12/1988':7,
'25/12/1990':9,
'8/5/1994':13,
'6/7/1996':15,
'12/1/2001':20
}
What I more or less get to is: Converting all the dates to unitary years and resting the years:
1981.1698630136987 + a =birthdate
1982.0602739726028 + b =birthdate
1982.054794520548 + c =birthdate
1981.4328767123288 + d =birthdate
1981.5917808219178 + e =birthdate
1981.1150684931506 + f =birthdate
-1<{a,b,c,d,e,f}<1
It defeated me. Is there any solution for this?
Edit, the key of the problem always will be:
4 =floor( 1985.1698630136987 -birthdate)
7 =floor( 1989.0602739726028 -birthdate)
9 =floor( 1991.054794520548 -birthdate)
13 =floor( 1994.4328767123288 -birthdate)
15 =floor( 1996.5917808219178 -birthdate)
20 =floor( 2001.1150684931506 -birthdate)