sync with evaleev/BTAS: extracted compilable doc/examples/synopsis.C