Template talk:Square root A
From Meta, a Wikimedia project coordination wiki
template:sra ( talk edit history links ) redirects to template:square root A ( talk edit history links ).
- The following does not apply with the new preprocessor, installed on Wikimedia wikis on 24 January 2008.
- Compare
{{subst:#if:1|{{subst:sra|3.0|1.7|.00000000001}}}}
giving directly:
1.73205080757 1.1227685448034E-12
1.73205083392 2.6351122506263E-8
1.73235294118 0.00030210726409008
1.7 -0.032352941176471
and
{{subst:sra|3.0|1.7|.00000000001}}
giving the same but only with an extra edit/save step:
1.73205080757 1.1227685448034E-12
1.73205083392 2.6351122506263E-8
1.73235294118 0.00030210726409008
1.7 -0.032352941176471
{{subst:#if:1|{{subst:sra|5|1|.00000000001}}}}
1.73205080757 1.1227685448E-12
1.73205083392 2.63511225063E-08
1.73235294118 0.00030210726409
1.7 -0.0323529411765
{{subst:sra|5|-1|0.01}}:
-2.2380952381 -0.00202634245663
-2.33333333333 -0.0952380952349
-3 -0.666666666667
-1 2
{{subst:sra|5|-1|0.00001}}:
-2.23606889564 -9.18140021788E-07
-2.2380952381 -0.00202634245663
-2.33333333333 -0.0952380952349
-3 -0.666666666667
-1 2
1.81994280423 0.085769676372
2.37868407771 0.558741273475
4.00906377016 1.63037969245
7.62466777409 3.61560400393
15.05 7.42533222591
0.1 -14.95
{{subst:sra|2000000000000|1|0.00001}} gives (see also Help:Calculation#Numbers_as_output):
Expression error: Unrecognised word "e"
1E+12 Expression error: Unrecognised word "e"
1 -1E+12
{{subst:sra|1999999999997|1|0.00001}} gives:
1414213.56237 -2.03447416425E-06
1414213.56251 0.000137965660542
1414233.48697 19.9244576106
1421740.52882 7507.04184753
1567843.68171 146103.152893
2244699.5085 676855.826795
3987879.3281 1743179.8196
7716576.35729 3728697.02919
15302454.7295 7585878.37221
30539420.3313 15236965.6018
61046078.5255 30506658.1942
122075773.784 61029695.2585
244143355.659 122067581.875
488282615.329 244139259.67
976563182.66 488280567.331
1953125341.32 976562158.66
3906250170.65 1953124829.33
7812500085.3 3906249914.65
15625000042.6 7812499957.3
31250000021.2 15624999978.6
62500000010.5 31249999989.2
125000000005 62499999994.5
250000000002 124999999997
500000000000 249999999998
999999999999 499999999998
1 -999999999998
{{subst:sra|.00000001|1|0.00001}} gives:
0.000107845947507 7.56054553453E-06
0.000148228473354 4.03825258467E-05
0.000257643647407 0.000109415174053
0.000495088902253 0.000237445254846
0.00097997344638 0.000484884544127
0.00195483136198 0.0009748579156
0.00390710328304 0.00195227192106
0.00781292663598 0.00390582335294
0.0156252132807 0.00781228664472
0.0312501065624 0.0156248932817
0.062500053125 0.0312499465626
0.12500002625 0.062499973125
0.2500000125 0.12499998625
0.500000005 0.2499999925
1 0.499999995
{{subst:sra|.000000009|1|0.000000001}} gives:
Expression error: Unrecognised word "e"
9.52475428384E-05 Expression error: Unrecognised word "e"
0.000103738385951 8.49084311255E-06
0.000145710432835 4.19720468843E-05
0.000256306681583 0.000110596248748
0.00049440984205 0.000238103160467
0.000979632566081 0.000485222724031
0.00195466075261 0.000975028186529
0.0039070179581 0.00195235720549
0.00781288397281 0.00390586601471
0.0156251919527 0.00781230797989
0.0312500959062 0.0156249039535
0.0625000478125 0.0312499519063
0.125000023625 0.0624999758125
0.25000001125 0.124999987625
0.5000000045 0.24999999325
1 0.4999999955
1 0.499999995
[edit] Square root templates
- template:square root ( talk edit history links ) - one step at each save
- template:square root A ( talk edit history links ) - with absolute error stop criterion, one or two saves produce all approximations and the differences between consecutive ones
- template:square root B ( talk edit history links ) - with absolute error stop criterion, one or two saves produce the final approximation and the differences between consecutive ones
- template:sqr ( talk edit history links ) - one or two saves produce the final approximation, with fixed stop criterion of relative error <1e-11 (based on use of a server with 12-digit results); gives a single value, a call can be put in an expression
- template:sqri ( talk edit history links ) - one or two saves produce all intermediate results and the final approximation at the top (so backward), with fixed stop criterion of relative error <1e-11 (based on use of a server with 12-digit results)
- template:sqrif ( talk edit history links ) - ditto, forward
- template:square root with defaults ( talk edit history links )
- template:square root with defaults A ( talk edit history links )
See also: