Sharaf ad-Dawlah was 'Adud ad-Dawlah's son and he became Caliph in 983. He continued to support mathematics and astronomy and Abu'l-Wafa and al-Quhi remained at the court in Baghdad working for the new Caliph. Sharaf ad-Dawlah required an observatory to be set up, and it was built in the garden of the palace in Baghdad. The observatory was officially opened in June 988 with a number of famous scientists present such as al-Quhi and Abu'l-Wafa.
The instruments in the observatory included a quadrant over 6 metres long and a stone sextant of 18 metres. Abu'l-Wafa is said to have been the first to build a wall quadrant to observe the stars. However, the caliph Sharaf ad-Dawlah died in the following year and the observatory was closed.
Like many scientist of his period, Abu'l-Wafa translated and wrote commentaries, which have since been lost, on the works of Euclid, Diophantus and al-Khwarizmi. Some time between 961 and 976 he wrote Kitab fi ma yahtaj ilayh al-kuttab wa'l-ummal min 'ilm al-hisab . In the introduction to this book Abu'l-Wafa writes that it ( or ):-
... comprises all that an experienced or novice, subordinate or chief in arithmetic needs to know, the art of civil servants, the employment of land taxes and all kinds of business needed in administrations, proportions, multiplication, division, measurements, land taxes, distribution, exchange and all other practices used by various categories of men for doing business and which are useful to them in their daily life.It is interesting that during this period there were two types of arithmetic books written, those using Indian symbols and those of finger-reckoning type. Abu'l-Wafa's text is of this second type with no numerals; all the numbers are written in words and all calculations are performed mentally. Early historians such as Moritz Cantor believed that there were opposing schools of authors, one committed to Indian methods, the other to Greek methods. However, this has since been disproved (see for example ), and it is now believed that mathematicians wrote for two differing types of readers. Abu'l-Wafa himself was an expert in the use of Indian numerals but these :-
... did not find application in business circles and among the population of the Eastern Caliphate for a long time.Hence he wrote his text using finger-reckoning arithmetic since this was the system used for by the business community. The work is in seven parts, each part containing seven chapters
Part II: On multiplication and division (arithmetical operations with integers and fractions).
Part III: Mensuration (area of figures, volume of solids and finding distances).
Part IV: On taxes (different kinds of taxes and problems of tax calculations).
Part V: On exchange and shares (types of crops, and problems relating to their value and exchange).
Part VI: Miscellaneous topics (units of money, payment of soldiers, the granting and withholding of permits for ships on the river, merchants on the roads).
Part VII: Further business topics.
Another text written by Abu'l-Wafa for practical use was A book on those geometric constructions which are necessary for a craftsman. This was written much later than his arithmetic text, certainly after 990. The book is in thirteen chapters and it considered the design and testing of drafting instruments, the construction of right angles, approximate angle trisections, constructions of parabolas, regular polygons and methods of inscribing them in and circumscribing them about given circles, inscribing of various polygons in given polygons, the division of figures such as plane polygons, and the division of spherical surfaces into regular spherical polygons.
Another interesting aspect of this particular work of Abu'l-Wafa's is that he tries where possible to solve his problems with ruler and compass constructions. When this is not possible he uses approximate methods. However, there are a whole collection of problems which he solves using a ruler and fixed compass, that is one where the angle between the legs of the compass is fixed. It is suggested in  that:-
Interest in these constructions was probably aroused by the fact that in practice they give more exact results than can be obtained by changing the compass opening.Abu'l-Wafa is best known for the first use of the tan function and compiling tables of sines and tangents at 15' intervals. This work was done as part of an investigation into the orbit of the Moon, written down in Theories of the Moon. He also introduced the sec and cosec and studied the interrelations between the six trigonometric lines associated with an arc.
Abu'l-Wafa devised a new method of calculating sine tables. His trigonometric tables are accurate to 8 decimal places (converted to decimal notation) while Ptolemy's were only accurate to 3 places.
His other works include Kitab al-Kamil , a simplified version of Ptolemy's Almagest . Although there seems to have been little of novel theoretical interest in this work, the observational data in it seem to have been used by many later astronomers.
Article by: J J O'Connor and E F Robertson