On 4/29/22 09:49, erentar wrote:
I would expect the following expression to evaluate to 1 but it does not.``` var("a",domain="real") simplify(cos(a)^2 + sin(a)^2) ```How can i define a variable in this fashion that will result in the code evaluating to 1?
Hi, you can use the "full_simplify" method for that: ``` sage: var("a", domain="real") a sage: b = cos(a)^2+sin(a)^2 sage: b.simplify() cos(a)^2 + sin(a)^2 sage: b.full_simplify() 1 ``` Best, -- Maxime -- 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/750b983a-8d0c-4040-2600-f03d87f02e6c%40inria.fr.
OpenPGP_signature
Description: OpenPGP digital signature