ScientificErrorAnalysis - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Scientific Error Analysis : Commands : ScientificErrorAnalysis/SetCorrelation

ScientificErrorAnalysis

 SetCorrelation
 set the value of the correlation between two quantities-with-error

 Calling Sequence SetCorrelation( obj1, obj2, cc )

Parameters

 obj1 - quantity-with-error obj2 - quantity-with-error cc - correlation coefficient

Description

 • The SetCorrelation( obj1, obj2, cc ) command sets a correlation coefficient cc between the quantities-with-error obj1 and obj2 for the current session.
 • To set a correlation for all future Maple sessions, add the SetCorrelation command to your Maple initialization file. For more information, see Create Maple Initialization File.
 • The correlation cc must be in the range $-1..1$.
 • The quantities-with-error obj1 and obj2 must be distinct.
 • Neither of the quantities-with-error obj1 and obj2 can have functional dependence on other quantities-with-error.

Examples

 > $\mathrm{with}\left(\mathrm{ScientificErrorAnalysis}\right):$
 > $a≔\mathrm{Quantity}\left(10.,1.\right):$
 > $b≔\mathrm{Quantity}\left(20.,1.\right):$
 > $\mathrm{combine}\left(ab,\mathrm{errors}\right)$
 ${\mathrm{Quantity}}{}\left({200.}{,}{22.36067977}\right)$ (1)
 > $\mathrm{SetCorrelation}\left(a,b,0.1\right)$
 > $\mathrm{combine}\left(ab,\mathrm{errors}\right)$
 ${\mathrm{Quantity}}{}\left({200.}{,}{23.23790008}\right)$ (2)