First time here? Check out the FAQ!

Ask Your Question
2

Sage cannot simplify arccos, but can simplify arcsin?

asked 11 years ago

sgia gravatar image

I am using Sage 5.7. It can simplify expressions involving arcsin, but not arccos, why?

Thanks

assume(x > 0)
assume(x < pi/2)
acos(cos(x)).simplify_full()

output: arccos(cos(x))

asin(sin(x)).simplify_full()

output: x
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 11 years ago

kcrisman gravatar image

This is in fact just about Maxima's simplification.

sage: F = asin(sin(x))
sage: F.simplify() # sends to Maxima, nothing else
x
sage: G = acos(cos(x))
sage: G.simplify()
arccos(cos(x))

This Maxima help thread suggests that, as of a couple years ago, this was known but not resolved. I've opened Maxima bug 2570 for this, though I wouldn't expect immediate response as it may be something somewhat deep in the code that isn't easy to unravel - simplification routines can be notorious for this, I guess.

Preview: (hide)
link

Comments

This has now been fixed upstream, and I've opened [Trac 14637](http://trac.sagemath.org/sage_trac/ticket/14637) to add a confirming doctest.

kcrisman gravatar imagekcrisman ( 11 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 11 years ago

Seen: 911 times

Last updated: Apr 20 '13