Re: [sympy] Can't get sympy.functions.atan2 to work with _eval_evalf

2019-08-20 Thread Ville Bergholm
On Tuesday, August 20, 2019 at 5:43:40 PM UTC+3, Oscar wrote: > > Can you open an issue on Github for this? > > Sure: https://github.com/sympy/sympy/issues/17461 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and

Re: [sympy] Can't get sympy.functions.atan2 to work with _eval_evalf

2019-08-20 Thread Oscar Benjamin
There's a "return" missing: $ git diff diff --git a/sympy/functions/elementary/trigonometric.py b/sympy/functions/elementary/trigonometric.py index 635e7f2..b7a0ad1 100644 --- a/sympy/functions/elementary/trigonometric.py +++ b/sympy/functions/elementary/trigonometric.py @@ -3070,4 +3070,4 @@ def

[sympy] Can't get sympy.functions.atan2 to work with _eval_evalf

2019-08-20 Thread Ville Bergholm
I've been trying to use sympy.Symbol to implement a system where the numerical value of a symbolic quantity is only fixed when it is evaluated using evalf(). To accomplish this I've redefined _eval_evalf() to return the aforementioned value (a fixed 5.0 in the toy example below). This works