ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 13 Feb 2019 20:08:44 +0100propagation of error calculation?https://ask.sagemath.org/question/45429/propagation-of-error-calculation/ I try to estimate an attainable accuracy for a new measurement system and came up with an analytical model of one of the physical aspects. I would like to calculate an absolute and relative error for the calculated result/value, depending on the error bars and input values that i feed into the model.
How can sage help me, given the function, error bars and values?
i could become more specific if i knew how to share the resulting equation describing the model... so how can i share the nicely formatted formula which cocalc outputs, here in text form?
Tue, 12 Feb 2019 15:18:32 +0100https://ask.sagemath.org/question/45429/propagation-of-error-calculation/Comment by ortollj for <p>I try to estimate an attainable accuracy for a new measurement system and came up with an analytical model of one of the physical aspects. I would like to calculate an absolute and relative error for the calculated result/value, depending on the error bars and input values that i feed into the model. </p>
<p>How can sage help me, given the function, error bars and values? </p>
<p>i could become more specific if i knew how to share the resulting equation describing the model... so how can i share the nicely formatted formula which cocalc outputs, here in text form?</p>
https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45430#post-id-45430it seems to me that it will be difficult to help you with the little information you give about your problem.
why not give a link on your project cocalc, which you will have previously released in public by clicking on the "share" button(then copy paste the shared link in bottom right little window). If you do not want to divulge your code then prepare a redacted version, with just the problem part ?.Tue, 12 Feb 2019 15:50:32 +0100https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45430#post-id-45430Comment by stockh0lm for <p>I try to estimate an attainable accuracy for a new measurement system and came up with an analytical model of one of the physical aspects. I would like to calculate an absolute and relative error for the calculated result/value, depending on the error bars and input values that i feed into the model. </p>
<p>How can sage help me, given the function, error bars and values? </p>
<p>i could become more specific if i knew how to share the resulting equation describing the model... so how can i share the nicely formatted formula which cocalc outputs, here in text form?</p>
https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45434#post-id-45434ah, that is how it is done around here. I am all in!
https://cocalc.com/share/f7766c5e-2f4d-4916-bb0d-74a7182e5fd5/2019-02-09-203517.sagews?viewer=shareTue, 12 Feb 2019 23:16:29 +0100https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45434#post-id-45434Answer by tmonteil for <p>I try to estimate an attainable accuracy for a new measurement system and came up with an analytical model of one of the physical aspects. I would like to calculate an absolute and relative error for the calculated result/value, depending on the error bars and input values that i feed into the model. </p>
<p>How can sage help me, given the function, error bars and values? </p>
<p>i could become more specific if i knew how to share the resulting equation describing the model... so how can i share the nicely formatted formula which cocalc outputs, here in text form?</p>
https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?answer=45431#post-id-45431The usual way for certified numerics is to use inverval arihmetics and ball arithmetics.
You can have a look at this thematic tutorial about the various representations of real and complex numbers in Sage, which include the `RealIntervalField` and the `RealBallField`:
https://mathexp2018.metelu.net/worksheets/real_and_complex_numbers/real_and_complex_numbers.ipynb
In case the page disapears, you can finf a very close version on [trac ticket 15944](https://trac.sagemath.org/ticket/15944)
(disclaimer : i am the author of the worksheet).
You can also have a look at the book Computational Mathematics with SageMath : http://sagebook.gforge.inria.fr/english.htmlTue, 12 Feb 2019 16:12:12 +0100https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?answer=45431#post-id-45431Comment by stockh0lm for <p>The usual way for certified numerics is to use inverval arihmetics and ball arithmetics.</p>
<p>You can have a look at this thematic tutorial about the various representations of real and complex numbers in Sage, which include the <code>RealIntervalField</code> and the <code>RealBallField</code>:</p>
<p><a href="https://mathexp2018.metelu.net/worksheets/real_and_complex_numbers/real_and_complex_numbers.ipynb">https://mathexp2018.metelu.net/worksh...</a></p>
<p>In case the page disapears, you can finf a very close version on <a href="https://trac.sagemath.org/ticket/15944">trac ticket 15944</a></p>
<p>(disclaimer : i am the author of the worksheet).</p>
<p>You can also have a look at the book Computational Mathematics with SageMath : <a href="http://sagebook.gforge.inria.fr/english.html">http://sagebook.gforge.inria.fr/engli...</a></p>
https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45453#post-id-45453Can I visualize the resulting range in a plot? When plotting the equation (see my worksheet) I get just one line, not two (or three) as I would expect for a range of valuesWed, 13 Feb 2019 20:08:44 +0100https://ask.sagemath.org/question/45429/propagation-of-error-calculation/?comment=45453#post-id-45453