ok Michael and Herbert, thank you for your help. A thought just came to my mind. Since it does not look straightforward to perform calculations within Latex/Pstricks/postscript, would next-generation Latex tools like luatex be of any help for future versions of pstricks? Thank you, M.