Improvements to "Composition of functions" type questions: adaptive sampling for curve plotting; fixed drawing to y-axis bounds.
qalib.js copied from qalib repository.