Thank you. 
Now to report the bug.

On Wednesday, June 20, 2018 at 11:15:36 AM UTC-7, Nils Bruin wrote:
>
> On Wednesday, June 20, 2018 at 10:12:24 AM UTC-7, Richard_L wrote:
>>
>> ..."domain:complex" is not the default for which code: Maxima or Sage?
>>
>
> it's a maxima command, so: default for maxima. Sage uses maxima with 
> non-default settings.
>
>
>>
>> Sage's documentation [
>> https://doc.sagemath.org/html/en/reference/calculus/sage/calculus/var.html] 
>> states 
>>
>> By default, var returns a complex variable. To define real or positive 
>>> variables we can specify the domain as: ...
>>>
>>  
>> My understanding of the implementation (although I cannot find it in the 
>> code) is that Sage sets up "domain:complex" for Maxima quite early.The fact 
>> that we can override this in the first few lines of the script (above the 
>> variable declarations) indicates to me that it happens before I get the 
>> sage prompt. (Otherwise the override would get stomped on.)
>>
>
> Strictly speaking: not before the prompt. The maxima-_lib library only 
> gets initialized upon the first call (you can notice this by the time it 
> takes to do the first operation in a session that uses maxima). However, 
> the interface is initialized by the time maxima_calculus.eval(...) gets to 
> do its thing, so therefore the setting survives.
>  
> The code is here:
>
>
> https://github.com/sagemath/sage/blob/854f9764d14236110b8d7f7b35a7d52017e044f8/src/sage/interfaces/maxima_lib.py#L167
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to