The Math Clock/Watch

I came across the Albert Clock and wondered if this could be done in Facer. The Alber Clock has a complication level that can be set. I concentrated on a simple formula having 2 values and an operand that should equate to the hour and minutes respectively. So for example if the following is true

A + B = current hour

then set the opacity to 100 for that formula. The big question is how to generate 2 random values for A and B, since the rand and wakeRand functions will always produce the same value if used in a given time.

What I came up with are 4 formulas, with a little help of AI, that guarantee a hit:

Addition: (#Dh#-wakeRand(1,11)) + (wakeRand(1,11))
Subtraction: (#Dh#+wakeRand(1,12)) - (wakeRand(1,12))
Multiplication: (floor((#Dh#/wakeRand(1,4))*10)/10) * (wakeRand(1,4))
Division: (#Dh#*wakeRand(1,6)) / (wakeRand(1,6))

Each folmula comes with its own opacity, see the watch face (inspection open, wakeRand seems to have issues in the ebedded iframe):

Some values have fractions, so to display the values nicely, I needed to use the floor function. So not so accurate…

3 Likes

I used heartbeat as a random source a couple of times. Using #ZHR# as a randomization source instead of wakeRand(), something like this for subtraction:

(#Dh#+1+floor(9*abs(sin(rad(#ZHR#*17+#Dd#*11)))))

(1+floor(9*abs(sin(rad(#ZHR#*17+#Dd#*11)))))

first minus second will always equal the current hour. The nice thing is that the numbers can change as your heart rate changes, while the result stays correct, maybe it is not what you want to achieve, but maybe you can built on this idea..

1 Like

Ah yes, good one. I could use that for one of values.

I’ve used ZHR for the frequency at which a heart icon blinks.

1 Like

This my maths test watch - it’s a simpler idea , but hey I like it!

2 Likes