The Rhind Papyrus - dating from around 1650 BC, but probably based on a document 200 years older - contains a problem: “A quantity and its 1/7 part become 19. What is the quantity?” The problem is solved in the Egyptian manner of regula falsi; that is, one assumes a - probably wrong - solution. This is known as the method of contradiction now. Today we would solve this using algebra.
The Ahmes papyrus and other ancient Egyptians scrolls are mainly concerned with problems leading to first-degree equations, but also describe some second-degree equations relating to land surveying. Babylonian clay tablets from the time of the Hammurabi dynasty (about 1800 - 1600 BC) deal with quadratic equations and their solutions by the method of “completing the square”, and also describe numerical methods of solving all quadratic equations and some simpler forms of cubic equations.
Background: 17 years after the events of “Mirror, Mirror.” Equipped with a cloaking device. This Enterprise is ordered to Regula One spacelab to obtain vital scientific data. Once received Kirk destroys Regula (and his former lover Carol Marcus) per Imperial orders. With that data they were able to pierce the dimensional veil and recreate the accident from 15 years prior, this time encompassing the entire starship. Once in our universe they attempted to hack a starbase computer. Their efforts were detected a ship was dispatched. They fooled the Courageous long enough to get close enough to attack them, then proceeded to attack Starbase 13. They destroyed the Starbase’s defensive grid when Excelsior arrived. They were outmatched but they were able to remote-control the captured Bird-of-Prey in Excelsior’s tow. The Bird-of-Prey, inside of Excelsior’s shields crippled it and the Enterprise was able to disable and capture the ship. Not long after the non-Mirror Kirk, Uhura, Scotty, Sulu, Chekov, Saavik, McCoy (and Captain) Stiles fooled their counterparts’ crew into beaming them to the Enterprise. They quickly took over, using intruder control measures to incapacitate the native crew. Marlena Moreau, shielded in Kirk’s quarters, attempted to kill him, until convinced he was not the Imperial version (she was a covert rebel operative) Stiles was forcibly put on a shuttlecraft to Starbase 13 to warn command of the situation. Excelsior figured out what was going on and jammed Enterprise’s comms, ignoring the shuttle. Kirk led his counterparton a chase but was no match for Excelsior’s superior technology. Mirror Kirk activated Enterprise’s self destruct remotely, a process the other Kirk couldn’t stop. The crew (those conscious) evacuated to the saucer section and Scotty reconfigured the saucer separation to time with the explosion. The saucer rode the shock waves of the explosions, operating on batteries only. Scotty jury-rigged the Tantalus Field to disintegrate key components on Excelsior's supply converter. It sapped their remaining power and Kirk led a boarding party to Excelsior via EVA. Once recaptured, Excelsior towed Enterprise’s saucer to Starbase 13.
Appeared in Star Trek #9-12 DC-V1. Imperial ships in this version have registry #’s starting with ICC. Although The Wrath of Khan stated it had been 15 years since “Space Seed” later dating places it at about 18 - it may have been 15 years for Ceti Alpha V given its orbit. Therefore 17 years since “Mirror, Mirror” give or take