Most historians agree that the `` castle clock '' , an astronomical clock invented by Al-Jazari in 1206 , is the first known programmable analog computer . The `` castle clock '' , an astronomical clock invented by Al-Jazari in 1206 , is considered to be the earliest programmable analog computer .