Global Variables
The following non-constant global variables can be set:
desc_current::Descriptor # Current Descriptor to use
show_eps::Float64 = 0.0 # Print epsilon
show_sparse::Bool = false # Use sparse monomial print
show_header::Bool = false # Print a header above each TPS
desc_current
defines the Descriptor
to use when that information is not explicitly (or implicitly in a TPS copy constructor) available, e.g. when calling TPS(a)
where a
is not a TPS
. This also allows one to use general Number
commands like convert(TPS, a)
and zeros(TPS, 6)
show_eps
defines the value below which the absolute value of a monomial coefficient is NOT printed
show_sparse
specifies whether the sparse monomial format is used for printing. This is useful for GTPSAs containing a large number of variables and parameters
show_header
specifies whether or not to print the GTPSA Descriptor
information above each TPS output
Examples
julia> d1 = Descriptor(1, 6);
julia> x = vars()
1-element Vector{TPS64}: Index Coefficient Order Exponent ------------------------------------------------ 1: 1.0000000000000000e+00 1 1
julia> GTPSA.show_sparse = true;
julia> x
1-element Vector{TPS64}: Index Coefficient Order Monomial ------------------------------------------------- 1: 1.0000000000000000e+00 1 (x₁)¹
julia> GTPSA.show_sparse = false;
julia> GTPSA.show_sparse
false
julia> x
1-element Vector{TPS64}: Index Coefficient Order Exponent ------------------------------------------------ 1: 1.0000000000000000e+00 1 1