Assert Toolbox
Table of Contents
I. Assert Toolbox
Assert
— An overview of the Assert toolbox.
assert_checkalmostequal
— Check that computed and expected are numerically close.
assert_checkequal
— Check that computed and expected are equal.
assert_checkerror
— Check that an instruction produces the expected error.
assert_checkfalse
— Check that condition is true.
assert_checkfilesequal
— Check two files are equal.
assert_checktrue
— Check that condition is true.
assert_generror
— Generates an error.
1. Condition
Condition Overview
— Computes the condition number of various functions.
assert_acoscond
— Computes the condition number of the acos function.
assert_asincond
— Computes the condition number of the asin function.
assert_atancond
— Computes the condition number of the atan function.
assert_condnum
— Computes the empirical condition number of the function f at point x.
assert_coscond
— Computes the condition number of the cos function.
assert_erfcond
— Computes the condition number of the erf function.
assert_erfinvcond
— Computes the condition number of the erfinv function.
assert_expcond
— Computes the condition number of the exp function.
assert_logcond
— Computes the condition number of the log function.
assert_plotcond
— Plots the condition number of a function.
assert_powcond
— Computes the condition number of the pow function.
assert_sincond
— Computes the condition number of the sin function.
assert_sqrtcond
— Computes the condition number of the square root function.
assert_sumcond
— Computes the condition number of the sum function.
assert_tancond
— Computes the condition number of the tan function.
2. Sorting
assert_compare
— The default comparison function used in the sort-merge.
assert_comparecomplex
— Compare complex numbers with a tolerance.
assert_sort
— A flexible sorting function.
assert_sortcomplex
— Sort complex numbers in increasing order with a tolerance.
3. Support
assert_benchfun
— Benchmarks a function and measure its performance.
assert_computedigits
— Returns the number of significant digits in computed result.
assert_condition2reltol
— Suggests a relative error, computed from the condition number.
assert_expandvar
— Expand variables so that they all have the same shape.
assert_printtable
— Prints a table of data with a given number of digits.