On Friday, April 10, 2020 at 1:05:15 PM UTC-7, Ne reknu wrote:
>
> Thank you for your answer. Unfortunatelly the  numpy.vectorize(Rce) 
> generates the very same error (I tried to plot it). Or pehaps I 
> misunderstood your intention?
>

No, my guess would have been that would work, but then apparently it 
doesn't. It does give you a route to arrive at a solution, though. The 
problem here isn't sage-specific: it's just that normally, python functions 
don't broadcast over numpy arrays. There should be plenty of examples 
around the web that show how to get broadcast behaviour in place. It looked 
to me like numpy.vectorize would do the trick, but there should be other 
solutions, or perhaps you should use the vectorized function differently.

By realizing that the question is not sage-specific, I think it will be 
easy to find a ready-made solution elsewhere or find another forum with 
more specific expertise. Or perhaps someone else here knows more about 
numpy.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4a9f1594-c2ef-4058-99fa-0d4b58075f87%40googlegroups.com.

Reply via email to