Z

zeros()

zeros(Expr, Var) list

zeros(Expr, Var=Guess) list

Returns a list of candidate real values of Var that make Expr=0. zeros() does this by computing explist(solve(Expr=0,Var),Var).

For some purposes, the result form for zeros() is more convenient than that of solve(). However, the result form of zeros() cannot express implicit solutions, solutions that require inequalities, or solutions that do not involve Var.

Note: See also cSolve(), cZeros(), and solve().

zeros({Expr1, Expr2},
{VarOrGuess1, VarOrGuess2 [, ]}) matrix

Returns candidate real zeros of the simultaneous algebraic expressions, where each VarOrGuess specifies an unknown whose value you seek.

Optionally, you can specify an initial guess for a variable. Each VarOrGuess must have the form:

variable
– or –
variable = real or non-real number

For example, x is valid and so is x=3.

 

If all of the expressions are polynomials and if you do NOT specify any initial guesses, zeros() uses the lexical Gröbner/Buchberger elimination method to attempt to determine all real zeros.

For example, suppose you have a circle of radius r at the origin and another circle of radius r centered where the first circle crosses the positive x-axis. Use zeros() to find the intersections.

As illustrated by r in the example to the right, simultaneous polynomial expressions can have extra variables that have no values, but represent given numeric values that could be substituted later.

Each row of the resulting matrix represents an alternate zero, with the components ordered the same as the varOrGuess list. To extract a row, index the matrix by [row].

Extract row 2:

You can also (or instead) include unknowns that do not appear in the expressions. For example, you can include z as an unknown to extend the previous example to two parallel intersecting cylinders of radius r. The cylinder zeros illustrate how families of zeros might contain arbitrary constants in the form ck, where k is an integer suffix from 1 through 255.

For polynomial systems, computation time or memory exhaustion may depend strongly on the order in which you list unknowns. If your initial choice exhausts memory or your patience, try rearranging the variables in the expressions and/or varOrGuess list.

 

If you do not include any guesses and if any expression is non-polynomial in any variable but all expressions are linear in the unknowns, zeros() uses Gaussian elimination to attempt to determine all real zeros.

If a system is neither polynomial in all of its variables nor linear in its unknowns, zeros() determines at most one zero using an approximate iterative method. To do so, the number of unknowns must equal the number of expressions, and all other variables in the expressions must simplify to numbers.

Each unknown starts at its guessed value if there is one; otherwise, it starts at 0.0.

Use guesses to seek additional zeros one by one. For convergence, a guess may have to be rather close to a zero.

zInterval

zInterval σ,List[,Freq[,CLevel]]

(Data list input)

zInterval σ,v,n [,CLevel]

(Summary stats input)

Computes a z confidence interval. A summary of results is stored in the stat.results variable. (See here.)

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.CLower, stat.CUpper

Confidence interval for an unknown population mean

stat.x

Sample mean of the data sequence from the normal random distribution

stat.ME

Margin of error

stat.sx

Sample standard deviation

stat.n

Length of the data sequence with sample mean

stat.σ

Known population standard deviation for data sequence List

zInterval_1Prop

zInterval_1Prop x,n [,CLevel]

Computes a one-proportion z confidence interval. A summary of results is stored in the stat.results variable. (See here.)

x is a non-negative integer.

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.CLower, stat.CUpper

Confidence interval containing confidence level probability of distribution

stat.Ç

The calculated proportion of successes

stat.ME

Margin of error

stat.n

Number of samples in data sequence

zInterval_2Prop

zInterval_2Prop x1,n1,x2,n2[,CLevel]

Computes a two-proportion z confidence interval. A summary of results is stored in the stat.results variable. (See here.)

x1 and x2 are non-negative integers.

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.CLower, stat.CUpper

Confidence interval containing confidence level probability of distribution

stat.Ç Diff

The calculated difference between proportions

stat.ME

Margin of error

stat.Ç1

First sample proportion estimate

stat.Ç2

Second sample proportion estimate

stat.n1

Sample size in data sequence one

stat.n2

Sample size in data sequence two

zInterval_2Samp

zInterval_2Samp σ1,σ2 ,List1,List2[,Freq1[,Freq2,[CLevel]]]

(Data list input)

zInterval_2Samp σ1,σ2,v1,n1,v2,n2[,CLevel]

(Summary stats input)

Computes a two-sample z confidence interval. A summary of results is stored in the stat.results variable. (See here.)

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.CLower, stat.CUpper

Confidence interval containing confidence level probability of distribution

stat.x1-x2

Sample means of the data sequences from the normal random distribution

stat.ME

Margin of error

stat.x1, stat.x2

Sample means of the data sequences from the normal random distribution

stat.σx1, stat.σx2

Sample standard deviations for List 1 and List 2

stat.n1, stat.n2

Number of samples in data sequences

stat.r1, stat.r2

Known population standard deviations for data sequence List 1 and List 2

zTest

zTest μ0,σ,List,[Freq[,Hypoth]]

(Data list input)

zTest μ0,σ,v,n[,Hypoth]

(Summary stats input)

Performs a z test with frequency freqlist. A summary of results is stored in the stat.results variable. (See here.)

Test H0: μ = μ0, against one of the following:

For Ha: μ < μ0, set Hypoth<0
For Ha: μ μ0 (default), set Hypoth=0
For Ha: μ > μ0, set Hypoth>0

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.z

(x μ0) / (σ / sqrt(n))

stat.P Value

Least probability at which the null hypothesis can be rejected

stat.x

Sample mean of the data sequence in List

stat.sx

Sample standard deviation of the data sequence. Only returned for Data input.

stat.n

Size of the sample

zTest_1Prop

 

 

Output variable

Description

stat.p0

Hypothesized population proportion

stat.z

Standard normal value computed for the proportion

stat.PVal

Smallest level of significance at which the null hypothesis can be rejected

stat.Ç

Estimated sample proportion

stat.n

Size of the sample

zTest_2Prop

zTest_2Prop x1,n1,x2,n2[,Hypoth]

Computes a two-proportion z test. A summary of results is stored in the stat.results variable. (See here.)

x1 and x2 are non-negative integers.

Test H0: p1 = p2, against one of the following:

For Ha: p1 > p2, set Hypoth>0
For Ha: p1 p2 (default), set Hypoth=0
For Ha: p < p0, set Hypoth<0

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.z

Standard normal value computed for the difference of proportions

stat.PVal

Smallest level of significance at which the null hypothesis can be rejected

stat.Ç1

First sample proportion estimate

stat.Ç2

Second sample proportion estimate

stat.Ç

Pooled sample proportion estimate

stat.n1, stat.n2

Number of samples taken in trials 1 and 2

zTest_2Samp

zTest_2Samp σ1,σ2 ,List1,List2[,Freq1[,Freq2[,Hypoth]]]

(Data list input)

zTest_2Samp σ1,σ2,v1,n1,v2,n2[,Hypoth]

(Summary stats input)

Computes a two-sample z test. A summary of results is stored in the stat.results variable. (See here.)

Test H0: μ1 = μ2, against one of the following:

For Ha: μ1 < μ2, set Hypoth<0
For Ha: μ1 μ2 (default), set Hypoth=0
For Ha: μ1 > μ2, Hypoth>0

For information on the effect of empty elements in a list, see “Empty (Void) Elements,” here.

 

Output variable

Description

stat.z

Standard normal value computed for the difference of means

stat.PVal

Smallest level of significance at which the null hypothesis can be rejected

stat.x1, stat.x2

Sample means of the data sequences in List1 and List2

stat.sx1, stat.sx2

Sample standard deviations of the data sequences in List1 and List2

stat.n1, stat.n2

Size of the samples