Here's another worrying behaviour:

sage: solve(log(x) == 0.5000000000000000000000000000000000001, x)
[x == sqrt(e)]

On Monday, 11 June 2012 17:53:17 UTC-7, Eviatar wrote:
>
> It seems Maxima does this by default. Any way to disable it?
>
> On Monday, 11 June 2012 17:47:09 UTC-7, Eviatar wrote:
>>
>> solve has inconsistent behaviour when using exact numerical 
>> representations of numbers.
>>
>> For example:
>>
>> sage: solve(sin(x) == 0.5, x)
>> [x == 1/6*pi]
>> sage: arcsin(0.5)
>> 0.523598775598299
>>
>> sage: solve(log(x) == 0.5, x)
>> [x == sqrt(e)]
>> sage: e^0.5
>> 1.64872127070013
>>
>> Shouldn't this be consistent? It seems to me that returning 
>> approximations makes more sense, because that's what all the functions do.
>>
>
> On Monday, 11 June 2012 17:47:09 UTC-7, Eviatar wrote:
>>
>> solve has inconsistent behaviour when using exact numerical 
>> representations of numbers.
>>
>> For example:
>>
>> sage: solve(sin(x) == 0.5, x)
>> [x == 1/6*pi]
>> sage: arcsin(0.5)
>> 0.523598775598299
>>
>> sage: solve(log(x) == 0.5, x)
>> [x == sqrt(e)]
>> sage: e^0.5
>> 1.64872127070013
>>
>> Shouldn't this be consistent? It seems to me that returning 
>> approximations makes more sense, because that's what all the functions do.
>>
>

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

Reply via email to