App::ErrorCalculator

App::ErrorCalculator is a Perl module that contains calculations with Gaussian Error Propagation.
Download

App::ErrorCalculator Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Steffen Mueller
  • Publisher web site:
  • http://search.cpan.org/~smueller/InlineX-XS-0.02/lib/InlineX/XS.pm

App::ErrorCalculator Tags


App::ErrorCalculator Description

App::ErrorCalculator is a Perl module that contains calculations with Gaussian Error Propagation. App::ErrorCalculator is a Perl module that contains calculations with Gaussian Error Propagation.SYNOPSIS # You can use the 'errorcalculator' script instead. require App::ErrorCalculator; App::ErrorCalculator->run(); # Using the script: # errorcalculatorerrorcalculator and its implementing Perl module App::ErrorCalculator is a Gtk2 tool that lets you do calculations with automatic error propagation.Start the script, enter a function into the function entry field, select an input file, select an output file and hit the Run Calculation button to have all data in the input field processed according to the function and written to the output file.Functions should consist of a function name followed by an equals sign and a function body. All identifiers (both the function name and all variables in the function body) should start with a letter. They may contain letters, numbers and underscores.The function body may contain any number of constants, variables, operators, functions and parenthesis. The exact syntax can be obtained by reading the manual page for Math::Symbolic::Parser. Arithmetic operators (+ - * / ^) are supported. The caret indicates exponentiation. Trigonometric, inverse trigonometric and hyperbolic functions are implemented (sin cos tan cot asin acos atan acot sinh cosh asinh acoth). log indicates a natural logarithm.Additionally, you may include derivatives in the formula which will be evaluated (analytically) for you. The syntax for this is: partial_derivative(a * x + b, x). (Would evaluate to a.)In order to allow for errors in constants, the program uses the Math::SymbolicX::Error parser extension: use the error(1 +/- 0.2) function to include constants with associated uncertainties in your formulas.The input files may be of any format recognized by the Spreadsheet::Read module. That means: Excel sheets, OpenOffice (1.0) spreadsheets, CSV (comma separated values) text files, etc.The program reads tabular data from the spreadsheet file. It expects each column to contain the data for one variable in the formula. a, b, c 1, 2, 3 4, 5, 6 7, 8, 9This would assign 1 to the variable a, 2 to b and 3 to c and then evaluate the formula with those values. The result would be written to the first data line of the output file. Then, the data in the next row will be used and so on. If a column is missing data, it is assumed to be zero.Since this is about errors, you can declare any number of errors to the numbers as demonstrated below: a, a_1, a_2, b, b_1 1, 0.2, 0.1, 2, 0.3 4, 0.3, 0.3, 5, 0.6 7, 0.4, 0,1, 8, 0.9Apart from dropping c for brevity, this example input adds columns for the errors of a and b. a has two errors: a_1 and a_2. b only has one error b_1 which corresponds to the error a_1. When calculating, a will be used as 1 +/- 0.2 +/- 0.1 in the first calculation and b as 2 +/- 0.3 +/- 0. The error propagation is implemented using Number::WithError so that's where you go for details.The output file will be a CSV file similar to the input examples above.Requirements:· Perl Requirements: · Perl


App::ErrorCalculator Related Software