These are chat archives for bluescarni/piranha

1st
Aug 2017
drakei
@drakei
Aug 01 2017 13:20
Hi, quick question: is the most efficient way to do a definite integral with math::integrate and then math::subs?
Francesco Biscani
@bluescarni
Aug 01 2017 13:23
in the subs call, would you like to replace all symbols with a number or just some of them?
In other words, you want a numerical or symbolic result for your integration?
Francesco Biscani
@bluescarni
Aug 01 2017 13:37
I'm asking because if you want to replace all symbols with numbers, math::evaluate() will be much better performance wise
drakei
@drakei
Aug 01 2017 17:14
Just the variable being integrated with respect to... so symbolic result. I have to do triple integrals where the bounds are symbolic.
Francesco Biscani
@bluescarni
Aug 01 2017 19:37
ok then probably math::subs() is the way to go
what math::integrate() really does it an antiderivative