Site Title

ns

Syntax

ns(equation, variable)

Description

The name originally stood for n-solve where n was the n in

Equation 0
which is a binomial distribution. ns makes repeated guesses to try to identify non-negative integer solutions to equation. It assumes that there is either a single non-negative solution, or a positive number that separates solutions and non-solutions (e.g. solutions are solutions if and only if they are less than 5.5).

ns can be useful when the built-in solve function fails. In VCE Maths Methods this function is most useful when you get asked a binomial distribution question such as, "How many times does a coin need to be flipped to ensure the probability, that heads was the result at least 22 times, is greater than 0.9?" (The answer is in the first example).

Parameters

equation
An equation or inequation.
variable
The variable to be solved for.

Return Value

A relation that describes non-negative integer solutions.

Examples

TI-Nspire Screen 0