implement libraries except finv, sqrt and atan