On Aug 22, 2009, at 3:13 AM, Mani chandra wrote:

>
> Mani chandra wrote:
>> Hi,
>>
>>     How does one define a variable in sage and make sure the it's
>> conjugate is the same as the variable itself?
>>
>> Thanks,
>> Mani chandra
>>
>>>
>>
>>
> Hi,
>
>     Perhaps I wasn't specific.
>
> sage: var('a')
> sage: a.conjugate()
> conjugate(a)
>
> What I want is for SAGE to return a, instead of conjugate(a). Does  
> "var"
> take any arguments that forces a variable to be real?

You have to invoke simplify for it to look at assumptions.

sage: var('a')
sage: assume(a, 'real')
sage: a.conjugate().simplify()
a

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to