On Sunday, November 26, 2017 at 6:56:41 PM UTC+1, Richard_L wrote:
>
> Do we have a convention concerning calls to upstream packages like maxima? 
> That is, which side of the interface is responsible for the scan to 
> determine whether the main code invoked upstream should be executed: the 
> caller (in this case manifolds.utilities) or the callee (in this case 
> simplify_trig())? 
>

We don't need to worry because simplify_trig() is Sage Python and we can 
just put the scan there before the call to Maxima.
What's more, Sage symbolic expressions are C++ (the Pynac layer). In an 
experimental implementation of the ticket
https://trac.sagemath.org/ticket/24283
scanning the 59-page expression for any of sin/cos/tan/cot/sec/csc takes 
six milliseconds. Beauty of C++.
 

> The former usually results in more robust code, while the latter usually 
> yields higher speed.
>

With 6ms the placement of the scan is irrelevant.

Best, 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to