The historian Ban Gu wrote that Jing Fang was an expert at making predictions from the hexagrams of the ancient Yijing. A book on Yijing divination attributed to him describes the najia method of hexagram interpretation, which correlates their separate lines with elements of the Chinese calendar.
Music theory
According to the 3rd-century historian Sima Biao, Jing Fang received an appointment as an official in the Music Bureau under Emperor Yuan of Han. Jing Fang was the first to notice how closely a succession of 53 just fifths approximates 31 octaves. He came upon this observation after learning to calculate the pythagorean comma between 12 fifths and 7 octaves, and extended this method fivefold to a scale composed of 60 fifths, finding that after 53 new values became incredibly close to tones already calculated. He accomplished this calculation by beginning with a suitable large starting value that could be divided by three easily, and proceeded to calculate the relative values of successive tones by the following method:
Proceed now from this new value to generate the next tone; repeat until all tones have been generated.
To produce an exact calculation, some 26 digits of accuracy would have been required. Instead, by rounding to about 6 digits, his calculations are within 0.0145 cents of exactness, which is a difference much finer than is usually perceptible. The final value he gave for the ratio between this 53rd fifth and the original was —. This value would later be calculated precisely by Nicholas Mercator in the 17th century.
Astronomy
He was also an advocate of the theory that the light emanating from the spherical Moon was merely a reflection of sunlight. This was known as the 'radiating influence' theory in ancient China, which stated that the light of the Moon was merely the light reflected from the Sun and that the celestial bodies were spherical. This accurate theory was dismissed by the philosopher Wang Chong, yet embraced by the mathematician, inventor, and scientist Zhang Heng. Jing Fang stated:
Death
It is recorded that he was executed by beheading in the marketplace in 37 BC under the Emperor's orders after he allegedly slung false accusations at a high official for infringing upon the law.