These are chat archives for symengine/symengine

5th
Apr 2018
Gary Tan
@tgn3000
Apr 05 2018 02:32
Seem to have found a bug of trig_simplify; submitted here: symengine/symengine#1428
Gary Tan
@tgn3000
Apr 05 2018 02:59
test_functions.cpp happened to miss these cases :smile:
Isuru Fernando
@isuruf
Apr 05 2018 03:09
Yeah. Fix in symengine/symengine#1429
Gary Tan
@tgn3000
Apr 05 2018 03:10
thanks!
Gary Tan
@tgn3000
Apr 05 2018 04:32

As for

class MyVisitor: : public BaseVisitor<MyVisitor, TransformVisitor>
{
using TransformVisitor::bvisit;
using TransformVisitor::result_;
void bvisit (const Basic &x){
    result_ = mul(integer(2), x);
}
}

I got

error: no matching function for call to ‘mul(std::enable_if<true, SymEngine::RCP<const SymEngine::Integer> >::type, const SymEngine::Basic&)’
     result_ = mul(SymEngine::integer(2), x);
                                           ^
Isuru Fernando
@isuruf
Apr 05 2018 04:32
mul(integer(2), x.rcp_from_this())
Gary Tan
@tgn3000
Apr 05 2018 04:32
Thx!! Wasn't sure how to go from Basic to RCP<const Basic>
Gary Tan
@tgn3000
Apr 05 2018 05:51
Oh sorry, my bad! My function did call eval_mpfr on a Symbol. But still it might be good to know which function throws SymEngine::NotImplementedError perhaps?
Isuru Fernando
@isuruf
Apr 05 2018 17:02
@tgn3000, are you using Linux?