Yes. This exactly. Oh. sadly sympy doesn't support :'(

On Thursday, 17 November 2022 at 20:30:51 UTC+7 [email protected] wrote:

> An alternative interpretation of your question is that you are asking if 
> sympy is aware of the rules for propagating significant digits through 
> calculations? The answer is no. You have to apply the rules yourself to 
> decide appropriate rounding. 
>
> Additional alternatives:  1) set up interval arithmetic to get a more 
> precise version of the significant figures rules; 2) do full error 
> propagation to determine uncertainties in your computations.
>
> Jonathan
>
> On Thursday, November 17, 2022 at 4:04:20 AM UTC-6 Oscar wrote:
>
>> The ordinary Python round function can do this:
>> https://docs.python.org/3/library/functions.html#round
>>
>>
>> On Thu, 17 Nov 2022 at 09:46, Peter Stahlecker <[email protected]> 
>> wrote:
>>
>>> you might want to check floating point numbers in the sympy 
>>> documentation.
>>>
>>> Am Do., 17. Nov. 2022 um 10:18 Uhr schrieb 'XR-7 RKE' via sympy <
>>> [email protected]>:
>>>
>>>> Hey guys,
>>>>
>>>> Does sympy support round a number to significant figures?
>>>>
>>>> [image: SCR-20221117-m64.png]
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "sympy" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/sympy/4f5ae36a-60fb-429b-8f7a-e00e5637853fn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/sympy/4f5ae36a-60fb-429b-8f7a-e00e5637853fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "sympy" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sympy/CABKqA0ZhnozwJfww-y8Q7u%3DwiTHgdZGouwc5Kmi4obj8ZwJ4Ww%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/sympy/CABKqA0ZhnozwJfww-y8Q7u%3DwiTHgdZGouwc5Kmi4obj8ZwJ4Ww%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/b6d42512-d729-4d18-9aa1-540eb5a91d8cn%40googlegroups.com.

Reply via email to