Advertising:

Πρότυπο:ErrorBar2

Από astronomia.gr
Αναθεώρηση ως προς 01:21, 1 Σεπτεμβρίου 2006 από τον Vag stephanou (συζήτηση | συνεισφορές) (προειδοποίηση)
(διαφορά) ← Παλαιότερη αναθεώρηση | Τελευταία αναθεώρηση (διαφορά) | Νεότερη αναθεώρηση → (διαφορά)
Πήδηση στην πλοήγησηΠήδηση στην αναζήτηση
Αυτό το πρότυπο προς το παρόν δε λειτουργεί.
Να μη χρησιμοποιείται.
Διαβάστε τη συζήτηση συζήτηση πριν κάνετε αλλαγές.



This template is used to display a correctly rounded uncertain quantity and its uncertainty, except that if the uncertainty exceeds a threshold times the quantity, the uncertainty is not displayed and it is merely indicated that the quantity is uncertain.

Its syntax is

{{ErrorBar2|uncertain-quantity|uncertainty|threshold}}.

For example:

  • {{ErrorBar2|1573.614|687.9|0.1}} yields

{{#if:687.9|{{#ifexpr: 687.9 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:687.9 < 0.0001|5|{{#ifexpr:687.9 < 0.001|4|{{#ifexpr:687.9 < 0.01|3|{{#ifexpr:687.9 < 0.1|2|{{#ifexpr: 687.9 < 1.0|1|{{#ifexpr: 687.9 < 10.0|0|{{#ifexpr: 687.9 < 100.0|-1|{{#ifexpr: 687.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:687.9 < 0.0001|5|{{#ifexpr:687.9 < 0.001|4|{{#ifexpr:687.9 < 0.01|3|{{#ifexpr:687.9 < 0.1|2|{{#ifexpr: 687.9 < 1.0|1|{{#ifexpr: 687.9 < 10.0|0|{{#ifexpr: 687.9 < 100.0|-1|{{#ifexpr: 687.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 687.9 round {{#ifexpr:687.9 < 0.0001|5|{{#ifexpr:687.9 < 0.001|4|{{#ifexpr:687.9 < 0.01|3|{{#ifexpr:687.9 < 0.1|2|{{#ifexpr: 687.9 < 1.0|1|{{#ifexpr: 687.9 < 10.0|0|{{#ifexpr: 687.9 < 100.0|-1|{{#ifexpr: 687.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.

  • {{ErrorBar2|1573.614|187.9|0.1}} yields

{{#if:187.9|{{#ifexpr: 187.9 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:187.9 < 0.0001|5|{{#ifexpr:187.9 < 0.001|4|{{#ifexpr:187.9 < 0.01|3|{{#ifexpr:187.9 < 0.1|2|{{#ifexpr: 187.9 < 1.0|1|{{#ifexpr: 187.9 < 10.0|0|{{#ifexpr: 187.9 < 100.0|-1|{{#ifexpr: 187.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:187.9 < 0.0001|5|{{#ifexpr:187.9 < 0.001|4|{{#ifexpr:187.9 < 0.01|3|{{#ifexpr:187.9 < 0.1|2|{{#ifexpr: 187.9 < 1.0|1|{{#ifexpr: 187.9 < 10.0|0|{{#ifexpr: 187.9 < 100.0|-1|{{#ifexpr: 187.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 187.9 round {{#ifexpr:187.9 < 0.0001|5|{{#ifexpr:187.9 < 0.001|4|{{#ifexpr:187.9 < 0.01|3|{{#ifexpr:187.9 < 0.1|2|{{#ifexpr: 187.9 < 1.0|1|{{#ifexpr: 187.9 < 10.0|0|{{#ifexpr: 187.9 < 100.0|-1|{{#ifexpr: 187.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.

  • {{ErrorBar2|1573.614|123.4|0.1}} yields

{{#if:123.4|{{#ifexpr: 123.4 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:123.4 < 0.0001|5|{{#ifexpr:123.4 < 0.001|4|{{#ifexpr:123.4 < 0.01|3|{{#ifexpr:123.4 < 0.1|2|{{#ifexpr: 123.4 < 1.0|1|{{#ifexpr: 123.4 < 10.0|0|{{#ifexpr: 123.4 < 100.0|-1|{{#ifexpr: 123.4 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:123.4 < 0.0001|5|{{#ifexpr:123.4 < 0.001|4|{{#ifexpr:123.4 < 0.01|3|{{#ifexpr:123.4 < 0.1|2|{{#ifexpr: 123.4 < 1.0|1|{{#ifexpr: 123.4 < 10.0|0|{{#ifexpr: 123.4 < 100.0|-1|{{#ifexpr: 123.4 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 123.4 round {{#ifexpr:123.4 < 0.0001|5|{{#ifexpr:123.4 < 0.001|4|{{#ifexpr:123.4 < 0.01|3|{{#ifexpr:123.4 < 0.1|2|{{#ifexpr: 123.4 < 1.0|1|{{#ifexpr: 123.4 < 10.0|0|{{#ifexpr: 123.4 < 100.0|-1|{{#ifexpr: 123.4 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.

  • {{ErrorBar2|1573.614|47.9|0.1}} yields

{{#if:47.9|{{#ifexpr: 47.9 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:47.9 < 0.0001|5|{{#ifexpr:47.9 < 0.001|4|{{#ifexpr:47.9 < 0.01|3|{{#ifexpr:47.9 < 0.1|2|{{#ifexpr: 47.9 < 1.0|1|{{#ifexpr: 47.9 < 10.0|0|{{#ifexpr: 47.9 < 100.0|-1|{{#ifexpr: 47.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:47.9 < 0.0001|5|{{#ifexpr:47.9 < 0.001|4|{{#ifexpr:47.9 < 0.01|3|{{#ifexpr:47.9 < 0.1|2|{{#ifexpr: 47.9 < 1.0|1|{{#ifexpr: 47.9 < 10.0|0|{{#ifexpr: 47.9 < 100.0|-1|{{#ifexpr: 47.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 47.9 round {{#ifexpr:47.9 < 0.0001|5|{{#ifexpr:47.9 < 0.001|4|{{#ifexpr:47.9 < 0.01|3|{{#ifexpr:47.9 < 0.1|2|{{#ifexpr: 47.9 < 1.0|1|{{#ifexpr: 47.9 < 10.0|0|{{#ifexpr: 47.9 < 100.0|-1|{{#ifexpr: 47.9 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.

  • {{ErrorBar2|1573.614|0.873|0.1}} yields

{{#if:0.873|{{#ifexpr: 0.873 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:0.873 < 0.0001|5|{{#ifexpr:0.873 < 0.001|4|{{#ifexpr:0.873 < 0.01|3|{{#ifexpr:0.873 < 0.1|2|{{#ifexpr: 0.873 < 1.0|1|{{#ifexpr: 0.873 < 10.0|0|{{#ifexpr: 0.873 < 100.0|-1|{{#ifexpr: 0.873 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:0.873 < 0.0001|5|{{#ifexpr:0.873 < 0.001|4|{{#ifexpr:0.873 < 0.01|3|{{#ifexpr:0.873 < 0.1|2|{{#ifexpr: 0.873 < 1.0|1|{{#ifexpr: 0.873 < 10.0|0|{{#ifexpr: 0.873 < 100.0|-1|{{#ifexpr: 0.873 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 0.873 round {{#ifexpr:0.873 < 0.0001|5|{{#ifexpr:0.873 < 0.001|4|{{#ifexpr:0.873 < 0.01|3|{{#ifexpr:0.873 < 0.1|2|{{#ifexpr: 0.873 < 1.0|1|{{#ifexpr: 0.873 < 10.0|0|{{#ifexpr: 0.873 < 100.0|-1|{{#ifexpr: 0.873 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.

  • {{ErrorBar2|1573.614|0.007|0.1}} yields

{{#if:0.007|{{#ifexpr: 0.007 > 1573.614 * 0.1|approx. {{#expr: 1573.614 round {{#ifexpr:0.007 < 0.0001|5|{{#ifexpr:0.007 < 0.001|4|{{#ifexpr:0.007 < 0.01|3|{{#ifexpr:0.007 < 0.1|2|{{#ifexpr: 0.007 < 1.0|1|{{#ifexpr: 0.007 < 10.0|0|{{#ifexpr: 0.007 < 100.0|-1|{{#ifexpr: 0.007 < 1000.0|-2|-3}} }} }} }} }} }} }} }}}}|{{#expr: 1573.614 round {{#ifexpr:0.007 < 0.0001|5|{{#ifexpr:0.007 < 0.001|4|{{#ifexpr:0.007 < 0.01|3|{{#ifexpr:0.007 < 0.1|2|{{#ifexpr: 0.007 < 1.0|1|{{#ifexpr: 0.007 < 10.0|0|{{#ifexpr: 0.007 < 100.0|-1|{{#ifexpr: 0.007 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} ± {{#expr: 0.007 round {{#ifexpr:0.007 < 0.0001|5|{{#ifexpr:0.007 < 0.001|4|{{#ifexpr:0.007 < 0.01|3|{{#ifexpr:0.007 < 0.1|2|{{#ifexpr: 0.007 < 1.0|1|{{#ifexpr: 0.007 < 10.0|0|{{#ifexpr: 0.007 < 100.0|-1|{{#ifexpr: 0.007 < 1000.0|-2|-3}} }} }} }} }} }} }} }} }} }} |1573.614 }}.