コード例 #1
0
ファイル: derivative.cpp プロジェクト: htfy96/symengine
 static RCP<const Basic> diff(const ACsc &self,
         const RCP<const Symbol> &x) {
     return mul(div(minus_one, mul(pow(self.get_arg(), i2),
             sqrt(sub(one, div(one, pow(self.get_arg(), i2)))))),
             self.get_arg()->diff(x));
 }
コード例 #2
0
ファイル: eval_mpfr.cpp プロジェクト: qubitnerd/symengine
 void bvisit(const ACsc &x) {
     apply(result_, *(x.get_arg()));
     mpfr_ui_div(result_, 1, result_, rnd_);
     mpfr_acos(result_, result_, rnd_);
 }