What version of SymPy are you using? Those both evaluate for me as
expected in 1.7.1.

Aaron Meurer

On Thu, Apr 8, 2021 at 1:30 PM 'Bruce Allen' via sympy
<[email protected]> wrote:
>
> Dear Sympy developers,
>
> This is not a serious issue, but I wanted to flag it.  According to the
> documentation (and IMO correctly):
>
> acos(x) = asec(1/x)
>
> So I was surprised to see the contrast between:
>
>  >>> acos(Rational(1,2))
> pi/3
>
>  >>> asec(Rational(2,1))
> asec(2)
>
> I would expect the previous line to return pi/3.  Here is another
> example of this:
>
>  >>> acos(sqrt(2)/2)
> pi/4
>
>  >>> asec(2/sqrt(2))
> asec(sqrt(2))
>
> I would expect the previous line to return pi/4.
>
> Cheers,
>     Bruce
>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sympy/373c727c-2e33-0704-e932-4fac92fc231a%40googlemail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAKgW%3D6%2BdJO36H3mPdGP9eBk4%3DRmyDEVZo3eVEuKjhKO4O0u5fw%40mail.gmail.com.

Reply via email to