http://i.imgur.com/NHoKL.png
This is a daily period. Variables are for day time and night time standard values and then there are two peaks for sunrise and sunset and some duration for these.
Day peak = 1
Night peak = 0.5
Sunrise peak = 3
Sunset peak = 2
sunrise start = in seconds
sunrise stop = in seconds
sunset start = in seconds
sunset stop = in seconds
I can do this with programming but I want to do it with pure math.
It is probably something like:
a sin (bx + c) + d sin (tx + h)
but more complicated since it should get these variables incorporated. Range will be in seconds: (0.........86400)...
PS. This is for a mod.