diff --git a/help/C/gel-function-list.xml b/help/C/gel-function-list.xml
index a89d86d..d7f048d 100644
--- a/help/C/gel-function-list.xml
+++ b/help/C/gel-function-list.xml
@@ -21,7 +21,7 @@ To get help on a specific function from the console type:
loadload "file.gel"
- Load a file into the interpretor. The file will execute
+ Load a file into the interpretor. The file will execute
as if it were typed onto the command line.
@@ -54,7 +54,7 @@ as if it were typed onto the command line.
pluginplugin plugin_name
- Load a plugin. Plugin of that name must be installed on the system
+ Load a plugin. Plugin of that name must be installed on the system
in the proper directory.
@@ -70,10 +70,10 @@ in the proper directory.
AskButtons (query)AskButtons (query, button1, ...)Asks a question and presents a list of buttons to the user (or
-a menu of options in text mode). Returns the 1-based index of the button
-pressed. That is, returns 1 if the first button was pressed, 2 if the second
-button was pressed, and so on. If the user closes the window (or simply hits
-enter in text mode), then null is returned. The execution
+a menu of options in text mode). Returns the 1-based index of the button
+pressed. That is, returns 1 if the first button was pressed, 2 if the second
+button was pressed, and so on. If the user closes the window (or simply hits
+enter in text mode), then null is returned. The execution
of the program is blocked until the user responds.
@@ -84,9 +84,9 @@ of the program is blocked until the user responds.
AskString (query)AskString (query, default)Asks a question and lets the user enter a string which
-it then returns. If the user cancels or closes the window, then
-null is returned. The execution of the program
-is blocked until the user responds. If default is given, then it is pre-typed in for the user to just press enter on.
+it then returns. If the user cancels or closes the window, then
+null is returned. The execution of the program
+is blocked until the user responds. If default is given, then it is pre-typed in for the user to just press enter on.
@@ -102,7 +102,7 @@ is blocked until the user responds. If default is given, the
ComposePowerComposePower (f,n,x)
- Compose and execute a function with itself n times, passing x as argument. Returning x if
+ Compose and execute a function with itself n times, passing x as argument. Returning x if
n equals 0.
Example:
genius>function f(x) = x^2 ;
@@ -128,9 +128,9 @@ is blocked until the user responds. If default is given, the
GetCurrentModuloGetCurrentModulo
- Get current modulo from the context outside the function. That is, if outside of
+ Get current modulo from the context outside the function. That is, if outside of
the function was executed in modulo (using mod) then this returns what
-this modulo was. Normally the body of the function called is not executed in modular arithmetic,
+this modulo was. Normally the body of the function called is not executed in modular arithmetic,
and this builtin function makes it possible to make GEL functions aware of modular arithmetic.
@@ -152,7 +152,7 @@ and this builtin function makes it possible to make GEL functions aware of modul
true) from a boolean value.
bval can also be a number in which case a
non-zero value will be interpreted as true and
- zero will be interpretted as false.
+ zero will be interpreted as false.
@@ -169,8 +169,8 @@ and this builtin function makes it possible to make GEL functions aware of modul
IsDefinedIsDefined (id)
- Check if an id is defined. You should pass a string or
- and identifier. If you pass a matrix, each entry will be
+ Check if an id is defined. You should pass a string or
+ and identifier. If you pass a matrix, each entry will be
evaluated separately and the matrix should contain strings
or identifiers.
@@ -196,7 +196,7 @@ and this builtin function makes it possible to make GEL functions aware of modul
IsFunctionRefIsFunctionRef (arg)
- Check if argument is a function reference. This includes variable
+ Check if argument is a function reference. This includes variable
references.
@@ -205,7 +205,7 @@ references.
IsMatrixIsMatrix (arg)
- Check if argument is a matrix. Even though null is
+ Check if argument is a matrix. Even though null is
sometimes considered an empty matrix, the function IsMatrix does
not consider null a matrix.
@@ -239,8 +239,8 @@ not consider null a matrix.
ParseParse (str)
- Parses but does not evaluate a string. Note that certain
- precomputation is done during the parsing stage.
+ Parses but does not evaluate a string. Note that certain
+ pre-computation is done during the parsing stage.
@@ -250,7 +250,7 @@ not consider null a matrix.
SetFunctionFlags (id,flags...)Set flags for a function, currently "PropagateMod" and "NoModuloArguments".
If "PropagateMod" is set, then the body of the function is evaluated in modular arithmetic when the function
-is called inside a block that was evaluated using modular arithmetic (using mod). If
+is called inside a block that was evaluated using modular arithmetic (using mod). If
"NoModuloArguments", then the arguments of the function are never evaluated using modular arithmetic.
@@ -326,7 +326,7 @@ is called inside a block that was evaluated using modular arithmetic (using print
print (str)
- Prints an expression and then print a newline. The argument str can be any expression. It is
+ Prints an expression and then print a newline. The argument str can be any expression. It is
made into a string before being printed.
@@ -335,7 +335,7 @@ made into a string before being printed.
printnprintn (str)
- Prints an expression without a trailing newline. The argument str can be any expression. It is
+ Prints an expression without a trailing newline. The argument str can be any expression. It is
made into a string before being printed.
@@ -344,7 +344,7 @@ made into a string before being printed.
protectprotect (id)
- Protect a variable from being modified. This is used on the internal GEL functions to
+ Protect a variable from being modified. This is used on the internal GEL functions to
avoid them being accidentally overridden.
@@ -354,8 +354,8 @@ avoid them being accidentally overridden.
ProtectAll ()Protect all currently defined variables, parameters and
-functions from being modified. This is used on the internal GEL functions to
-avoid them being accidentally overridden. Normally &app; considers
+functions from being modified. This is used on the internal GEL functions to
+avoid them being accidentally overridden. Normally &app; considers
unprotected variables as user defined.
@@ -364,7 +364,7 @@ unprotected variables as user defined.
setset (id,val)
- Set a global variable. The id
+ Set a global variable. The id
can be either a string or a quoted identifier as follows.
For example:
set(`x,1)
@@ -378,7 +378,7 @@ unprotected variables as user defined.stringstring (s)
- Make a string. This will make a string out of any argument.
+ Make a string. This will make a string out of any argument.
@@ -396,9 +396,9 @@ unprotected variables as user defined.undefine (id)Alias: Undefine
- Undefine a variable. This includes locals and globals,
- every value on all context levels is wiped. This function
- should really not be used on local variables. A vector of
+ Undefine a variable. This includes locals and globals,
+ every value on all context levels is wiped. This function
+ should really not be used on local variables. A vector of
identifiers can also be passed to undefine several variables.
@@ -409,9 +409,9 @@ unprotected variables as user defined.
UndefineAll ()Undefine all unprotected global variables
- (including functions and parameters). Normally &app;
+ (including functions and parameters). Normally &app;
considers protected variables as system defined functions
- and variables. Note that UndefineAll
+ and variables. Note that UndefineAll
only removes the global definition of symbols not local ones,
so that it may be run from inside other functions safely.
@@ -439,8 +439,8 @@ unprotected variables as user defined.
waitwait (secs)
- Waits a specified number of seconds. secs
-must be nonnegative. Zero is accepted and nothing happens in this case,
+ Waits a specified number of seconds. secs
+must be non-negative. Zero is accepted and nothing happens in this case,
except possibly user interface events are processed.
@@ -450,7 +450,7 @@ except possibly user interface events are processed.
versionReturns the version of Genius as a horizontal 3-vector with
- major version first, then minor version and finally patchlevel.
+ major version first, then minor version and finally the patch level.
@@ -656,7 +656,7 @@ display 0.0 instead of the number.
Output is never chopped if OutputChopExponent is zero.
-It must be a nonnegative integer.
+It must be a non-negative integer.
If you want output always chopped according to
@@ -672,7 +672,7 @@ greater than or equal to
OutputChopWhenExponentOutputChopWhenExponent = number
- When to chop output. See
+ When to chop output. See
OutputChopExponent.
@@ -687,7 +687,7 @@ greater than or equal to
This affects mostly how matrices and fractions are printed out and
- is useful for pasting into documents. For example you can set this
+ is useful for pasting into documents. For example you can set this
to the latex by:
OutputStyle = "latex"
@@ -716,7 +716,7 @@ greater than or equal to
SlopefieldTicks = [vertical,horizontal]Sets the number of vertical and horizontal ticks in a
-slopefield plot. (See SlopefieldPlot).
+slopefield plot. (See SlopefieldPlot).
@@ -769,8 +769,8 @@ slopefield plot. (See Slo
VectorfieldNormalizedVectorfieldNormalized = true
- Should the vectorfield plotting have normalized arrow length. If true, vector fields will only show direction
- and not magnitude. (See VectorfieldPlot).
+ Should the vectorfield plotting have normalized arrow length. If true, vector fields will only show direction
+ and not magnitude. (See VectorfieldPlot).
@@ -780,7 +780,7 @@ slopefield plot. (See Slo
VectorfieldTicks = [vertical,horizontal]Sets the number of vertical and horizontal ticks in a
-vectorfield plot. (See VectorfieldPlot).
+vectorfield plot. (See VectorfieldPlot).
@@ -796,7 +796,7 @@ vectorfield plot. (See V
CatalanConstant
- Catalan's Constant, approximately 0.915... It is defined to be the series where terms are (-1^k)/((2*k+1)^2), where k ranges from 0 to infinity.
+ Catalan's Constant, approximately 0.915... It is defined to be the series where terms are (-1^k)/((2*k+1)^2), where k ranges from 0 to infinity.
See
@@ -811,7 +811,7 @@ vectorfield plot. (See V
EulerConstantAliases: gamma
- Euler's Constant gamma. Sometimes called the
+ Euler's Constant gamma. Sometimes called the
Euler-Mascheroni constant.
@@ -854,9 +854,9 @@ vectorfield plot. (See V
e
- The base of the natural logarithm. e^x
+ The base of the natural logarithm. e^x
is the exponential function
- exp. This is the
+ exp. This is the
number approximately 2.71828182846...
@@ -874,7 +874,7 @@ vectorfield plot. (See V
pi
The number pi, that is the ratio of a circle's circumference
- to its diameter. This is approximately 3.14159265359...
+ to its diameter. This is approximately 3.14159265359...
See
@@ -898,7 +898,7 @@ vectorfield plot. (See V
Aliases: abs
Absolute value of a number and if x is
- a complex value the modulus of x. I.e. this
+ a complex value the modulus of x. I.e. this
the distance of x to the origin.
@@ -926,7 +926,7 @@ for more information.
ComplexConjugate (z)Aliases: conjConj
- Calculates the complex conjugate of the complex number z. If z is a vector or matrix,
+ Calculates the complex conjugate of the complex number z. If z is a vector or matrix,
all its elements are conjugated.
See
@@ -992,8 +992,8 @@ all its elements are conjugated.IsComplexRationalIsComplexRational (num)
- Check if argument is a possibly complex rational number. That is, if both real and imaginary parts are
- given as rational numbers. Of course rational simply means "not stored as a floating point number."
+ Check if argument is a possibly complex rational number. That is, if both real and imaginary parts are
+ given as rational numbers. Of course rational simply means "not stored as a floating point number."
@@ -1022,10 +1022,10 @@ all its elements are conjugated.
-
- IsNonNegativeInteger
+
+ Isnon-negativeInteger
- IsNonNegativeInteger (num)
+ Isnon-negativeInteger (num)Check if argument is a non-negative real integer.
@@ -1035,7 +1035,7 @@ all its elements are conjugated.IsPositiveInteger (num)Aliases: IsNaturalNumber
- Check if argument is a positive real integer. Note that
+ Check if argument is a positive real integer. Note that
we accept the convention that 0 is not a natural number.
@@ -1044,7 +1044,7 @@ we accept the convention that 0 is not a natural number.IsRationalIsRational (num)
- Check if argument is a rational number (non-complex). Of course rational simply means "not stored as a floating point number."
+ Check if argument is a rational number (non-complex). Of course rational simply means "not stored as a floating point number."
@@ -1086,10 +1086,10 @@ we accept the convention that 0 is not a natural number.Sign (x)Aliases: sign
- Return the sign of a number. That is returns
+ Return the sign of a number. That is returns
-1 if value is negative,
0 if value is zero and
-1 if value is positive. If x is a complex
+1 if value is positive. If x is a complex
value then Sign returns the direction or 0.
@@ -1109,7 +1109,7 @@ value then Sign returns the direction or 0.
exp (x)
- The exponential function. This is the function
+ The exponential function. This is the function
e^x where e
is the base of the natural
logarithm.
@@ -1127,7 +1127,7 @@ value then Sign returns the direction or 0.
floatfloat (x)
- Make number a floating point value. That is returns the floating point representation of the number x.
+ Make number a floating point value. That is returns the floating point representation of the number x.
@@ -1209,7 +1209,7 @@ number is specified) of the given size returned.Generate random integer in the range
[0,max).
If size is given then a matrix (if two numbers are specified) or vector (if one
-number is specified) of the given size returned. For example
+number is specified) of the given size returned. For example
genius>randint(4)
= 3
genius>randint(4,2)
@@ -1238,7 +1238,7 @@ number is specified) of the given size returned. For example
sqrt (x)Aliases: SquareRoot
- The square root. When operating modulo some integer will return either a null or a vector of the square roots. Examples:
+ The square root. When operating modulo some integer will return either a null or a vector of the square roots. Examples:
genius>sqrt(2)
= 1.41421356237
genius>sqrt(-1)
@@ -1390,12 +1390,12 @@ number is specified) of the given size returned. For example
atan2 (y, x)Aliases: arctan2
- Calculates the arctan2 function. If
+ Calculates the arctan2 function. If
x>0 then it returns
- atan(y/x). If x<0
+ atan(y/x). If x<0
then it returns sign(y) * (pi - atan(|y/x|).
When x=0 it returns sign(y) *
- pi/2. atan2(0,0) returns 0
+ pi/2. atan2(0,0) returns 0
rather then failing.
@@ -1635,7 +1635,7 @@ number is specified) of the given size returned. For example
DiscreteLog (n,b,q)Find discrete log of n base b in
Fq, the finite field of order q, where q
- is a prime, using the Silver-Pohlig-Hellman algoritm.
+ is a prime, using the Silver-Pohlig-Hellman algorithm.
See
Wikipedia or
@@ -1677,9 +1677,9 @@ number is specified) of the given size returned. For example
ExactDivision (n,d)
Return n/d but only if d
- divides n. If d
+ divides n. If d
does not divide n then this function returns
- garbage. This is a lot faster for very large numbers
+ garbage. This is a lot faster for very large numbers
than the operation n/d, but of course only
useful if you know that the division is exact.
@@ -1691,9 +1691,9 @@ number is specified) of the given size returned. For example
Factorize (n)
- Return factorization of a number as a matrix. The first
+ Return factorization of a number as a matrix. The first
row is the primes in the factorization (including 1) and the
- second row are the powers. So for example:
+ second row are the powers. So for example:
genius>Factorize(11*11*13)
=
[1 11 13
@@ -1711,11 +1711,11 @@ number is specified) of the given size returned. For example
Factors (n)
- Return all factors of n in a vector. This
- includes all the non-prime factors as well. It includes 1 and the
- number itself. So for example to print all the perfect numbers
+ Return all factors of n in a vector. This
+ includes all the non-prime factors as well. It includes 1 and the
+ number itself. So for example to print all the perfect numbers
(those that are sums of their factors) up to the number 1000 you
- could do (this is of course very inefficent)
+ could do (this is of course very inefficient)
for n=1 to 1000 do (
if MatrixSum (Factors(n)) == 2*n then
print(n)
@@ -1752,7 +1752,7 @@ number is specified) of the given size returned. For example
FindPrimitiveElementMod (q)Find the first primitive element in Fq, the finite
-group of order q. Of course q must be a prime.
+group of order q. Of course q must be a prime.
@@ -1771,7 +1771,7 @@ group of order q (q must be a prime).IndexCalculus (n,b,q,S)Compute discrete log base b of n in Fq, the finite
group of order q (q a prime), using the
-factor base S. S should be a column of
+factor base S. S should be a column of
primes possibly with second column precalculated by
IndexCalculusPrecalculation.
@@ -1785,7 +1785,7 @@ primes possibly with second column precalculated by
IndexCalculus for logarithms base b in
Fq, the finite group of order q
(q a prime), for the factor base S (where
-S is a column vector of primes). The logs will be
+S is a column vector of primes). The logs will be
precalculated and returned in the second column.
@@ -1804,8 +1804,8 @@ precalculated and returned in the second column.IsMersennePrimeExponent (p)
Tests if a positive integer p is a
- Mersenne prime exponent. That is if
- 2p-1 is a prime. It does this
+ Mersenne prime exponent. That is if
+ 2p-1 is a prime. It does this
by looking it up in a table of known values which is relatively
short.
See also
@@ -1830,7 +1830,7 @@ precalculated and returned in the second column.IsNthPower (m,n)
Tests if a rational number m is a perfect
- nth power. See also
+ nth power. See also
IsPerfectPower
and
IsPerfectSquare.
@@ -1859,8 +1859,8 @@ precalculated and returned in the second column.IsPerfectSquare (n)
- Check an integer for being a perfect square of an integer. The number must
- be a real integer. Negative integers are of course never perfect
+ Check an integer for being a perfect square of an integer. The number must
+ be a real integer. Negative integers are of course never perfect
squares of real integers.
@@ -1872,18 +1872,18 @@ precalculated and returned in the second column.IsPrime (n)
Tests primality of integers, for numbers less than 2.5e10 the
- answer is deterministic (if Riemann hypothesis is true). For
+ answer is deterministic (if Riemann hypothesis is true). For
numbers larger, the probability of a false positive
depends on
- IsPrimeMillerRabinReps. That
+ IsPrimeMillerRabinReps. That
is the probability of false positive is 1/4 to the power
- IsPrimeMillerRabinReps. The default
+ IsPrimeMillerRabinReps. The default
value of 22 yields a probability of about 5.7e-14.
If false is returned, you can be sure that
- the number is a composite. If you want to be absolutely sure
+ the number is a composite. If you want to be absolutely sure
that you have a prime you can use
MillerRabinTestSure but it may take
@@ -1902,7 +1902,7 @@ precalculated and returned in the second column.IsPrimitiveMod (g,q)Check if g is primitive in Fq, the finite
-group of order q, where q is a prime. If q is not prime results are bogus.
+group of order q, where q is a prime. If q is not prime results are bogus.
@@ -1922,7 +1922,7 @@ If q is not prime results are bogus.IsPseudoprime (n,b)If n is a pseudoprime base b but not a prime,
-that is if b^(n-1) == 1 mod n. This calles the PseudoprimeTest
+that is if b^(n-1) == 1 mod n. This calles the PseudoprimeTest
@@ -2046,8 +2046,8 @@ that is if b^(n-1) == 1 mod n. This calles the MillerRabinTest (n,reps)
Use the Miller-Rabin primality test on n,
- reps number of times. The probability of false
- positive is (1/4)^reps. It is probably
+ reps number of times. The probability of false
+ positive is (1/4)^reps. It is probably
usually better to use
IsPrime since that is faster and
@@ -2139,7 +2139,7 @@ that is if b^(n-1) == 1 mod n. This calles the PadicValuation
PadicValuation (n,p)
- Returns the padic valuation (number of trailing zeros in base p).
+ Returns the p-adic valuation (number of trailing zeros in base p).
See
Planetmath for more information.
@@ -2152,10 +2152,10 @@ that is if b^(n-1) == 1 mod n. This calles the PowerMod (a,b,m)
- Compute a^b mod m. The
+ Compute a^b mod m. The
b's power of a modulo
- m. It is not neccessary to use this function
- as it is automatically used in modulo mode. Hence
+ m. It is not necessary to use this function
+ as it is automatically used in modulo mode. Hence
a^b mod m is just as fast.
@@ -2205,7 +2205,7 @@ that is if b^(n-1) == 1 mod n. This calles the RemoveFactor
RemoveFactor (n,m)
- Removes all instances of the factor m from the number n. That is divides by the largest power of m, that divides n.
+ Removes all instances of the factor m from the number n. That is divides by the largest power of m, that divides n.
See
Planetmath or
@@ -2218,7 +2218,7 @@ that is if b^(n-1) == 1 mod n. This calles the SilverPohligHellmanWithFactorization
SilverPohligHellmanWithFactorization (n,b,q,f)
- Find discrete log of n base b in Fq, the finite group of order q, where q is a prime using the Silver-Pohlig-Hellman algoritm, given f being the factorization of q-1.
+ Find discrete log of n base b in Fq, the finite group of order q, where q is a prime using the Silver-Pohlig-Hellman algorithm, given f being the factorization of q-1.
@@ -2226,7 +2226,7 @@ that is if b^(n-1) == 1 mod n. This calles the SqrtModPrime
SqrtModPrime (n,p)
- Find square root of n modulo p (where p is a prime). Null is returned if not a quadratic residue.
+ Find square root of n modulo p (where p is a prime). Null is returned if not a quadratic residue.
See
Planetmath or
@@ -2254,9 +2254,9 @@ that is if b^(n-1) == 1 mod n. This calles the gcd (a,args...)
Aliases: GCD
- Greatest common divisor of integers. You can enter as many
+ Greatest common divisor of integers. You can enter as many
integers in the argument list, or you can give a vector or a matrix
- of integers. If you give more than one matrix of the same
+ of integers. If you give more than one matrix of the same
size then GCD is done element by element.
@@ -2273,9 +2273,9 @@ that is if b^(n-1) == 1 mod n. This calles the lcm (a,args...)
Aliases: LCM
- Least common multiplier of integers. You can enter as many
+ Least common multiplier of integers. You can enter as many
integers in the argument list, or you can give a vector or a matrix
- of integers. If you give more than one matrix of the same size
+ of integers. If you give more than one matrix of the same size
then LCM is done element by element.
@@ -2328,7 +2328,7 @@ that is if b^(n-1) == 1 mod n. This calles the CompoundMatrix
CompoundMatrix (k,A)
- Calculate the kth compund matrix of A.
+ Calculate the kth compound matrix of A.
@@ -2337,9 +2337,9 @@ that is if b^(n-1) == 1 mod n. This calles the CountZeroColumns (M)
- Count the number of zero columns in a matrix. For example
+ Count the number of zero columns in a matrix. For example
Once you column reduce a matrix you can use this to find
- the nullity. See cref
+ the nullity. See cref
and Nullity.
@@ -2377,8 +2377,8 @@ that is if b^(n-1) == 1 mod n. This calles the DotProduct
DotProduct (u,v)
- Get the dot product of two vectors. The vectors must be of the
-same size. No conjugates are taken so this is a bilinear form even if working over the complex numbers.
+ Get the dot product of two vectors. The vectors must be of the
+same size. No conjugates are taken so this is a bilinear form even if working over the complex numbers.
See
Planetmath for more information.
@@ -2392,7 +2392,7 @@ same size. No conjugates are taken so this is a bilinear form even if working o
ExpandMatrix (M)
Expands a matrix just like we do on unquoted matrix input.
- That is we expand any internal matrices as blocks. This is
+ That is we expand any internal matrices as blocks. This is
a way to construct matrices out of smaller ones and this is
normally done automatically on input unless the matrix is quoted.
@@ -2404,7 +2404,7 @@ same size. No conjugates are taken so this is a bilinear form even if working o
HermitianProduct (u,v)Aliases: InnerProduct
- Get the hermitian product of two vectors. The vectors must be of the same size. This is a sesquilinear form using the identity matrix.
+ Get the hermitian product of two vectors. The vectors must be of the same size. This is a sesquilinear form using the identity matrix.
See
Mathworld for more information.
@@ -2417,7 +2417,7 @@ same size. No conjugates are taken so this is a bilinear form even if working o
I (n)Aliases: eye
- Return an identity matrix of a given size, that is n by n. If n is zero, returns null.
+ Return an identity matrix of a given size, that is n by n. If n is zero, returns null.
See
Planetmath for more information.
@@ -2429,8 +2429,8 @@ same size. No conjugates are taken so this is a bilinear form even if working o
IndexComplementIndexComplement (vec,msize)
- Return the index complement of a vector of indexes. Everything is one based. For example for vector [2,3] and size
-5, we return [1,4,5]. If
+ Return the index complement of a vector of indexes. Everything is one based. For example for vector [2,3] and size
+5, we return [1,4,5]. If
msize is 0, we always return null.
@@ -2452,9 +2452,9 @@ same size. No conjugates are taken so this is a bilinear form even if working o
IsIdentityIsIdentity (x)
- Check if a matrix is the identity matrix. Automatically returns false
- if the matrix is not square. Also works on numbers, in which
- case it is equivalent to x==1. When x is
+ Check if a matrix is the identity matrix. Automatically returns false
+ if the matrix is not square. Also works on numbers, in which
+ case it is equivalent to x==1. When x is
null (we could think of that as a 0 by 0 matrix),
no error is generated and false is returned.
@@ -2464,7 +2464,7 @@ same size. No conjugates are taken so this is a bilinear form even if working o
IsLowerTriangularIsLowerTriangular (M)
- Is a matrix lower triangular. That is, are all the entries below the diagonal zero.
+ Is a matrix lower triangular. That is, are all the entries below the diagonal zero.
@@ -2476,11 +2476,11 @@ same size. No conjugates are taken so this is a bilinear form even if working o
-
- IsMatrixNonnegative
+
+ IsMatrixnon-negative
- IsMatrixNonnegative (M)
- Check if a matrix is nonnegative, that is if each element is nonnegative.
+ IsMatrixnon-negative (M)
+ Check if a matrix is non-negative, that is if each element is non-negative.
Do not confuse positive matrices with positive semi-definite matrices.
See
@@ -2494,7 +2494,7 @@ same size. No conjugates are taken so this is a bilinear form even if working o
IsMatrixPositive (M)Check if a matrix is positive, that is if each element is
-positive (and hence real). In particular, no element is 0. Do not confuse
+positive (and hence real). In particular, no element is 0. Do not confuse
positive matrices with positive definite matrices.
See
@@ -2543,8 +2543,8 @@ numbers.IsValueOnlyIsValueOnly (M)
- Check if a matrix is a matrix of numbers only. Many internal
-functions make this check. Values can be any number including complex numbers.
+ Check if a matrix is a matrix of numbers only. Many internal
+functions make this check. Values can be any number including complex numbers.
@@ -2553,7 +2553,7 @@ functions make this check. Values can be any number including complex numbers.<
IsVector (v)
- Is argument a horizontal or a vertical vector. Genius does
+ Is argument a horizontal or a vertical vector. Genius does
not distinguish between a matrix and a vector and a vector
is just a 1 by n or n by 1 matrix.
@@ -2564,8 +2564,8 @@ functions make this check. Values can be any number including complex numbers.<
IsZeroIsZero (x)
- Check if a matrix is composed of all zeros. Also works on numbers, in which
- case it is equivalent to x==0. When x is
+ Check if a matrix is composed of all zeros. Also works on numbers, in which
+ case it is equivalent to x==0. When x is
null (we could think of that as a 0 by 0 matrix),
no error is generated and true is returned as the condition is
vacuous.
@@ -2600,7 +2600,7 @@ functions make this check. Values can be any number including complex numbers.<
MakeVector (A)Make column vector out of matrix by putting columns above
- each other. Returns null when given null.
+ each other. Returns null when given null.
@@ -2621,7 +2621,7 @@ functions make this check. Values can be any number including complex numbers.<
MatrixSum (A)
- Calculate the sum of all elements in a matrix or vecgtor. That is
+ Calculate the sum of all elements in a matrix or vector. That is
we add all the elements and return a number that is the
sum of all the elements.
@@ -2641,7 +2641,7 @@ functions make this check. Values can be any number including complex numbers.<
OuterProductOuterProduct (u,v)
- Get the outer product of two vectors. That is, suppose that
+ Get the outer product of two vectors. That is, suppose that
u and v are vertical vectors, then
the outer product is v * u.'.
@@ -2676,10 +2676,10 @@ vector with the result.RowsOfRowsOf (M)
- Gets the rows of a matrix as a vertical vector. Each element
+ Gets the rows of a matrix as a vertical vector. Each element
of the vector is a horizontal vector which is the corresponding row of
-M. This function is useful if you wish to loop over the
-rows of a matrix. For example, as for r in RowsOf(M) do
+M. This function is useful if you wish to loop over the
+rows of a matrix. For example, as for r in RowsOf(M) do
something(r).
@@ -2688,8 +2688,8 @@ something(r).SetMatrixSizeSetMatrixSize (M,rows,columns)
- Make new matrix of given size from old one. That is, a new
- matrix will be returned to which the old one is copied. Entries that
+ Make new matrix of given size from old one. That is, a new
+ matrix will be returned to which the old one is copied. Entries that
don't fit are clipped and extra space is filled with zeros.
if rows or columns are zero
then null is returned.
@@ -2725,8 +2725,8 @@ something(r).SubmatrixSubmatrix (m,r,c)
- Return column(s) and row(s) from a matrix. This is
-just equivalent to m@(r,c). r
+ Return column(s) and row(s) from a matrix. This is
+just equivalent to m@(r,c). r
and c should be vectors of rows and columns (or single numbers if only one row or column is needed).
@@ -2759,7 +2759,7 @@ and c should be vectors of rows and columns (or single number
elementselements (M)
- Get the total number of elements of a matrix. This is the
+ Get the total number of elements of a matrix. This is the
number of columns times the number of rows.
@@ -2768,7 +2768,7 @@ number of columns times the number of rows.onesones (rows,columns...)
- Make an matrix of all ones (or a row vector if only one argument is given). Returns null if either rows or columns are zero.
+ Make an matrix of all ones (or a row vector if only one argument is given). Returns null if either rows or columns are zero.
@@ -2784,7 +2784,7 @@ number of columns times the number of rows.zeroszeros (rows,columns...)
- Make a matrix of all zeros (or a row vector if only one argument is given). Returns null if either rows or columns are zero.
+ Make a matrix of all zeros (or a row vector if only one argument is given). Returns null if either rows or columns are zero.
@@ -2798,8 +2798,8 @@ number of columns times the number of rows.AuxilliaryUnitMatrixAuxilliaryUnitMatrix (n)
- Get the auxilliary unit matrix of size n. This is a square matrix matrix with that is all zero except the
-superdiagonal being all ones. It is the Jordan block matrix of one zero eigenvalue.
+ Get the auxiliary unit matrix of size n. This is a square matrix matrix with that is all zero except the
+superdiagonal being all ones. It is the Jordan block matrix of one zero eigenvalue.
See
Planetmath or
@@ -2829,9 +2829,9 @@ superdiagonal being all ones. It is the Jordan block matrix of one zero eigenva
CharacteristicPolynomial (M)Aliases: CharPoly
- Get the characteristic polynomial as a vector. That is, return
-the coefficients of the polynomial starting with the constant term. This is
-the polynomial defined by det(M-xI). The roots of this
+ Get the characteristic polynomial as a vector. That is, return
+the coefficients of the polynomial starting with the constant term. This is
+the polynomial defined by det(M-xI). The roots of this
polynomial are the eigenvalues of M.
See also CharacteristicPolynomialFunction.
@@ -2846,8 +2846,8 @@ See also Character
CharacteristicPolynomialFunctionCharacteristicPolynomialFunction (M)
- Get the characteristic polynomial as a function. This is
-the polynomial defined by det(M-xI). The roots of this
+ Get the characteristic polynomial as a function. This is
+the polynomial defined by det(M-xI). The roots of this
polynomial are the eigenvalues of M.
See also CharacteristicPolynomial.
@@ -2862,9 +2862,9 @@ See also CharacteristicPol
ColumnSpaceColumnSpace (M)
- Get a basis matrix for the columnspace of a matrix. That is,
+ Get a basis matrix for the columnspace of a matrix. That is,
return a matrix whose columns are the basis for the column space of
-M. That is the space spanned by the columns of
+M. That is the space spanned by the columns of
M.
@@ -2891,7 +2891,7 @@ matrices A.ConjugateTransposeConjugateTranspose (M)
- Conjugate transpose of a matrix (adjoint). This is the
+ Conjugate transpose of a matrix (adjoint). This is the
same as the ' operator.
See
@@ -2913,7 +2913,7 @@ matrices A.ConvolutionVectorConvolutionVector (a,b)
- Calculate convolution of two horizontal vectors. Return
+ Calculate convolution of two horizontal vectors. Return
result as a vector and not added together.
@@ -2975,7 +2975,7 @@ result as a vector and not added together.Eigenvectors (M)Eigenvectors (M, &eigenvalues)Eigenvectors (M, &eigenvalues, &multiplicities)
- Get the eigenvectors of a square matrix. Optionally get also
+ Get the eigenvectors of a square matrix. Optionally get also
the eigenvalues and their algebraic multiplicities.
Currently only works for matrices of size up to 2 by 2.
@@ -2993,10 +2993,10 @@ the eigenvalues and their algebraic multiplicities.
GramSchmidt (v,B...)Apply the Gram-Schmidt process (to the columns) with respect to
-inner product given by B. If B is not
-given then the standard hermitian product is used. B can
+inner product given by B. If B is not
+given then the standard hermitian product is used. B can
either be a sesquilinear function of two arguments or it can be a matrix giving
-a sesquilinear form. The vectors will be made orthonormal with respect to
+a sesquilinear form. The vectors will be made orthonormal with respect to
B.
See
@@ -3065,7 +3065,7 @@ a sesquilinear form. The vectors will be made orthonormal with respect to
IsHermitianIsHermitian (M)
- Is a matrix hermitian. That is, is it equal to its conjugate transpose.
+ Is a matrix hermitian. That is, is it equal to its conjugate transpose.
See
Planetmath for more information.
@@ -3101,7 +3101,7 @@ a sesquilinear form. The vectors will be made orthonormal with respect to
IsNormalIsNormal (M)
- Is M a normal matrix. That is,
+ Is M a normal matrix. That is,
does M*M' == M'*M.
See
@@ -3115,18 +3115,18 @@ a sesquilinear form. The vectors will be made orthonormal with respect to
IsPositiveDefiniteIsPositiveDefinite (M)
- Is M a hermitian positive definite matrix. That is if
+ Is M a hermitian positive definite matrix. That is if
HermitianProduct(M*v,v) is always strictly positive for
any vector v.
M must be square and hermitian to be positive definite.
-The check that is performed is that every principal submatrix has a nonnegative
+The check that is performed is that every principal submatrix has a non-negative
determinant.
(See HermitianProduct)
Note that some authors (for example Mathworld) do not require that
M be hermitian, and then the condition is
on the real part of the inner product, but we do not take this
- view. If you wish to perform this check, just check the
+ view. If you wish to perform this check, just check the
hermitian part of the matrix M as follows:
IsPositiveDefinite(M+M').
@@ -3138,29 +3138,29 @@ determinant.
-
- IsPositiveSemidefinite
+
+ IsPositivesemi-definite
- IsPositiveSemidefinite (M)
- Is M a hermitian positive semidefinite matrix. That is if
-HermitianProduct(M*v,v) is always nonnegative for
+ IsPositivesemi-definite (M)
+ Is M a hermitian positive semi-definite matrix. That is if
+HermitianProduct(M*v,v) is always non-negative for
any vector v.
-M must be square and hermitian to be positive semidefinite.
-The check that is performed is that every principal submatrix has a nonnegative
+M must be square and hermitian to be positive semi-definite.
+The check that is performed is that every principal submatrix has a non-negative
determinant.
(See HermitianProduct)
Note that some authors do not require that
M be hermitian, and then the condition is
on the real part of the inner product, but we do not take this
- view. If you wish to perform this check, just check the
+ view. If you wish to perform this check, just check the
hermitian part of the matrix M as follows:
- IsPositiveSemidefinite(M+M').
+ IsPositivesemi-definite(M+M').
See
- Planetmath or
- Mathworld for more information.
+ Planetmath or
+ Mathworld for more information.
@@ -3169,7 +3169,7 @@ determinant.
IsSkewHermitianIsSkewHermitian (M)
- Is a matrix skew-hermitian. That is, is the conjugate transpose equal to negative of the matrix.
+ Is a matrix skew-hermitian. That is, is the conjugate transpose equal to negative of the matrix.
See
Planetmath for more information.
@@ -3226,7 +3226,7 @@ determinant.
Get the LU decomposition of A
and store the result in the L and
- U which should be references. It returns true
+ U which should be references. It returns true
if successful.
For example suppose that A is a square matrix, then after running:
genius>LUDecomposition(A,&L,&U)
@@ -3240,7 +3240,7 @@ determinant.
reduction.
(ISBN 0-201-11577-8 pp.99-103)
The upper triangular matrix features a diagonal
- of values 1 (one). This is not Doolittle's Method which features
+ of values 1 (one). This is not Doolittle's Method which features
the 1's diagonal on the lower matrix.
@@ -3290,8 +3290,8 @@ determinant.
NullSpaceNullSpace (T)
- Get the nullspace of a matrix. That is the kernel of the
- linear mapping that the matrix represents. This is returned
+ Get the nullspace of a matrix. That is the kernel of the
+ linear mapping that the matrix represents. This is returned
as a matrix whose column space is the nullspace of
T.
@@ -3306,7 +3306,7 @@ determinant.
Nullity (M)Aliases: nullity
- Get the nullity of a matrix. That is, return the dimension of
+ Get the nullity of a matrix. That is, return the dimension of
the nullspace; the dimension of the kernel of M.
See
@@ -3327,7 +3327,7 @@ the nullspace; the dimension of the kernel of M.PivotColumnsPivotColumns (M)
- Return pivot columns of a matrix, that is columns which have a leading 1 in row reduced form. Also returns the row where they occur.
+ Return pivot columns of a matrix, that is columns which have a leading 1 in row reduced form. Also returns the row where they occur.
@@ -3337,8 +3337,8 @@ the nullspace; the dimension of the kernel of M.Projection (v,W,B...)Projection of vector v onto subspace
W with respect to inner product given by
-B. If B is not given then the standard
-hermitian product is used. B can either be a sesquilinear
+B. If B is not given then the standard
+hermitian product is used. B can either be a sesquilinear
function of two arguments or it can be a matrix giving a sesquilinear form.
@@ -3387,10 +3387,10 @@ function of two arguments or it can be a matrix giving a sesquilinear form.
RayleighQuotientIteration (A,x,epsilon,maxiter,vecref)Find eigenvalues of A using the Rayleigh
- quotient iteration method. x is a guess
- at a eigenvector and could be random. It should have
- nonzero imaginary part if it will have any chance at finding
- complex eigenvalues. The code will run at most
+ quotient iteration method. x is a guess
+ at a eigenvector and could be random. It should have
+ non-zero imaginary part if it will have any chance at finding
+ complex eigenvalues. The code will run at most
maxiter iterations and return null
if we cannot get within an error of epsilon.
vecref should either be null or a reference
@@ -3501,7 +3501,7 @@ function of two arguments or it can be a matrix giving a sesquilinear form.
SolveLinearSystemSolveLinearSystem (M,V,args...)
- Solve linear system Mx=V, return solution V if there is a unique solution, null otherwise. Extra two reference parameters can optionally be used to get the reduced M and V.
+ Solve linear system Mx=V, return solution V if there is a unique solution, null otherwise. Extra two reference parameters can optionally be used to get the reduced M and V.
@@ -3510,8 +3510,8 @@ function of two arguments or it can be a matrix giving a sesquilinear form.
ToeplitzMatrix (c, r...)Return the Toeplitz matrix constructed given the first column c
-and (optionally) the first row r. If only the column c is given then it is
-conjugated and the nonconjugated version is used for the first row to give a
+and (optionally) the first row r. If only the column c is given then it is
+conjugated and the non-conjugated version is used for the first row to give a
Hermitian matrix (if the first element is real of course).
See
@@ -3525,7 +3525,7 @@ Hermitian matrix (if the first element is real of course).Trace (M)Aliases: trace
- Calculate the trace of a matrix. That is the sum of the diagonal elements.
+ Calculate the trace of a matrix. That is the sum of the diagonal elements.
See
Planetmath for more information.
@@ -3537,7 +3537,7 @@ Hermitian matrix (if the first element is real of course).TransposeTranspose (M)
- Transpose of a matrix. This is the same as the
+ Transpose of a matrix. This is the same as the
.' operator.
See
@@ -3560,8 +3560,8 @@ Hermitian matrix (if the first element is real of course).VectorAngle (v,w,B...)The angle of two vectors with respect to inner product given by
-B. If B is not given then the standard
-hermitian product is used. B can either be a sesquilinear
+B. If B is not given then the standard
+hermitian product is used. B can either be a sesquilinear
function of two arguments or it can be a matrix giving a sesquilinear form.
@@ -3628,8 +3628,8 @@ function of two arguments or it can be a matrix giving a sesquilinear form.
ref (M)Aliases: REFRowEchelonForm
- Get the row echelon form of a matrix. That is, apply gaussian
-elimination but not backaddition to M. The pivot rows are
+ Get the row echelon form of a matrix. That is, apply gaussian
+elimination but not backaddition to M. The pivot rows are
divided to make all pivots 1.
See
@@ -3644,7 +3644,7 @@ divided to make all pivots 1.rref (M)Aliases: RREFReducedRowEchelonForm
- Get the reduced row echelon form of a matrix. That is, apply gaussian elimination together with backaddition to M.
+ Get the reduced row echelon form of a matrix. That is, apply gaussian elimination together with backaddition to M.
See
Wikipedia or
@@ -3723,7 +3723,7 @@ divided to make all pivots 1.Fibonacci (x)Aliases: fib
- Calculate nth fibonacci number. That
+ Calculate nth fibonacci number. That
is the number defined recursively by
Fibonacci(n) = Fibonacci(n-1) + Fibonacci(n-2)
and
@@ -3743,9 +3743,9 @@ divided to make all pivots 1.FrobeniusNumber (v,arg...)
- Calculate the Frobenius number. That is calculate smallest
- number that cannot be given as a nonnegative integer linear
- combination of a given vector of nonnegative integers.
+ Calculate the Frobenius number. That is calculate smallest
+ number that cannot be given as a non-negative integer linear
+ combination of a given vector of non-negative integers.
The vector can be given as separate numbers or a single vector.
All the numbers given should have GCD of 1.
@@ -3769,11 +3769,11 @@ divided to make all pivots 1.FrobeniusNumber (n,v)
- Find the vector c of nonnegative integers
+ Find the vector c of non-negative integers
such that taking the dot product with v is
- equal to n. If not possible returns null. v
+ equal to n. If not possible returns null. v
should be given sorted in increasing order and should consist
- of nonnegative integers.
+ of non-negative integers.
See
@@ -3811,9 +3811,9 @@ divided to make all pivots 1.MultinomialMultinomial (v,arg...)
- Calculate multinomial coefficients. Takes a vector of
+ Calculate multinomial coefficients. Takes a vector of
k
- nonnegative integers and computes the multinomial coefficient.
+ non-negative integers and computes the multinomial coefficient.
This corresponds to the coefficient in the homogeneous polynomial
in k variables with the corresponding powers.
@@ -3841,7 +3841,7 @@ divided to make all pivots 1.NextCombination (v,n)Get combination that would come after v in call to
-combinations, first combination should be [1:k]. This
+combinations, first combination should be [1:k]. This
function is useful if you have many combinations to go through and you don't
want to waste memory to store them all.
@@ -3866,7 +3866,7 @@ do (
PascalPascal (i)
- Get the Pascal's triangle as a matrix. This will return
+ Get the Pascal's triangle as a matrix. This will return
an i+1 by i+1 lower diagonal
matrix which is the Pascal's triangle after i
iterations.
@@ -4022,7 +4022,7 @@ do (
EvenPeriodicExtension (f,L)Return a function which is even periodic extension of
-f with half period L. That
+f with half period L. That
is a function defined on the interval [0,L]
extended to be even on [-L,L] and then
extended to be periodic with period 2*L.
@@ -4041,11 +4041,11 @@ extended to be periodic with period 2*L.FourierSeriesFunction (a,b,L)Return a function which is a Fourier series with the
coefficients given by the vectors a (sines) and
-b (cosines). Note that a@(1) is
+b (cosines). Note that a@(1) is
the constant coefficient! That is, a@(n) refers to
the term cos(x*(n-1)*pi/L), while
b@(n) refers to the term
-sin(x*n*pi/L). Either a
+sin(x*n*pi/L). Either a
or b can be null.
See
@@ -4115,7 +4115,7 @@ or b can be null.LimitLimit (f,x0)
- Calculate the limit of a real-valued function at x0. Tries to calculate both left and right limits.
+ Calculate the limit of a real-valued function at x0. Tries to calculate both left and right limits.
@@ -4146,7 +4146,7 @@ where a are the cosine coefficients and
the Fourier series of
f with half-period L (that is defined
on [-L,L] and extended periodically) with coefficients
-up to Nth harmonic computed numerically. The coefficients are
+up to Nth harmonic computed numerically. The coefficients are
computed by numerical integration using
NumericalIntegral.
@@ -4164,8 +4164,8 @@ computed by numerical integration using
Return a function which is the Fourier series of
f with half-period L (that is defined
on [-L,L] and extended periodically) with coefficients
-up to Nth harmonic computed numerically. This is the
-trigonometric real series composed of sines and cosines. The coefficients are
+up to Nth harmonic computed numerically. This is the
+trigonometric real series composed of sines and cosines. The coefficients are
computed by numerical integration using
NumericalIntegral.
@@ -4182,11 +4182,11 @@ computed by numerical integration using
NumericalFourierCosineSeriesCoefficients (f,L,N)Return a vector of coefficients of the
the cosine Fourier series of
-f with half-period L. That is,
+f with half-period L. That is,
we take f defined on [0,L]
take the even periodic extension and compute the Fourier series, which
-only has sine terms. The series is computed up to the
-Nth harmonic. The coefficients are
+only has sine terms. The series is computed up to the
+Nth harmonic. The coefficients are
computed by numerical integration using
NumericalIntegral.
Note that a@(1) is
@@ -4205,11 +4205,11 @@ the term cos(x*(n-1)*pi/L).NumericalFourierCosineSeriesFunction (f,L,N)Return a function which is the cosine Fourier series of
-f with half-period L. That is,
+f with half-period L. That is,
we take f defined on [0,L]
take the even periodic extension and compute the Fourier series, which
-only has cosine terms. The series is computed up to the
-Nth harmonic. The coefficients are
+only has cosine terms. The series is computed up to the
+Nth harmonic. The coefficients are
computed by numerical integration using
NumericalIntegral.
@@ -4226,11 +4226,11 @@ computed by numerical integration using
NumericalFourierSineSeriesCoefficients (f,L,N)Return a vector of coefficients of the
the sine Fourier series of
-f with half-period L. That is,
+f with half-period L. That is,
we take f defined on [0,L]
take the odd periodic extension and compute the Fourier series, which
-only has sine terms. The series is computed up to the
-Nth harmonic. The coefficients are
+only has sine terms. The series is computed up to the
+Nth harmonic. The coefficients are
computed by numerical integration using
NumericalIntegral.
@@ -4246,11 +4246,11 @@ computed by numerical integration using
NumericalFourierSineSeriesFunction (f,L,N)Return a function which is the sine Fourier series of
-f with half-period L. That is,
+f with half-period L. That is,
we take f defined on [0,L]
take the odd periodic extension and compute the Fourier series, which
-only has sine terms. The series is computed up to the
-Nth harmonic. The coefficients are
+only has sine terms. The series is computed up to the
+Nth harmonic. The coefficients are
computed by numerical integration using
NumericalIntegral.
@@ -4298,7 +4298,7 @@ computed by numerical integration using
OddPeriodicExtension (f,L)Return a function which is odd periodic extension of
-f with half period L. That
+f with half period L. That
is a function defined on the interval [0,L]
extended to be odd on [-L,L] and then
extended to be periodic with period 2*L.
@@ -4429,7 +4429,7 @@ and has period b-a.GammaFunction (x)Aliases: Gamma
- The Gamma function. Currently only implemented for real values.
+ The Gamma function. Currently only implemented for real values.
See
Planetmath for more information.
@@ -4534,7 +4534,7 @@ and has period b-a.RiemannZeta (x)Aliases: zeta
- The Riemann zeta function. Currently only implemented for real values.
+ The Riemann zeta function. Currently only implemented for real values.
See
Planetmath for more information.
@@ -4546,7 +4546,7 @@ and has period b-a.UnitStepUnitStep (x)
- The unit step function is 0 for x<0, 1 otherwise. This is the integral of the Dirac Delta function. Also called the Heaviside function.
+ The unit step function is 0 for x<0, 1 otherwise. This is the integral of the Dirac Delta function. Also called the Heaviside function.
See
Wikipedia for more information.
@@ -4594,11 +4594,11 @@ and has period b-a.CubicFormula (p)
Compute roots of a cubic (degree 3) polynomial using the
- cubic formula. The polynomial should be given as a
- vector of coefficients. That is
+ cubic formula. The polynomial should be given as a
+ vector of coefficients. That is
4*x^3 + 2*x + 1 corresponds to the vector
[1,2,0,4].
- Returns a column vector of the three solutions. The first solution is always
+ Returns a column vector of the three solutions. The first solution is always
the real one as a cubic always has one real solution.
@@ -4622,7 +4622,7 @@ and has period b-a.
Systems can be solved by just having y be a
- (column) vector everywhere. That is, y0 can
+ (column) vector everywhere. That is, y0 can
be a vector in which case f should take a number
x and a vector of the same size for the second
argument and should return a vector of the same size.
@@ -4641,7 +4641,7 @@ and has period b-a.FindRootBisection (f,a,b,TOL,N)Find root of a function using the bisection method.
TOL is the desired tolerance and
-N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
+N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
@@ -4651,7 +4651,7 @@ and has period b-a.FindRootFalsePosition (f,a,b,TOL,N)Find root of a function using the method of false position.
TOL is the desired tolerance and
-N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
+N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
@@ -4661,7 +4661,7 @@ and has period b-a.FindRootMullersMethod (f,x1,x2,x3,TOL,N)Find root of a function using the Muller's method.
TOL is the desired tolerance and
-N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
+N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
@@ -4671,7 +4671,7 @@ and has period b-a.FindRootSecant (f,a,b,TOL,N)Find root of a function using the secant method.
TOL is the desired tolerance and
-N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
+N is the limit on the number of iterations to run, 0 means no limit. The function returns a vector [success,value,iteration], where success is a boolean indicating success, value is the last value computed, and iteration is the number of iterations done.
@@ -4683,7 +4683,7 @@ and has period b-a.
Compute roots of a polynomial (degrees 1 through 4)
using one of the formulas for such polynomials.
The polynomial should be given as a
- vector of coefficients. That is
+ vector of coefficients. That is
4*x^3 + 2*x + 1 corresponds to the vector
[1,2,0,4].
Returns a column vector of the solutions.
@@ -4703,8 +4703,8 @@ and has period b-a.QuadraticFormula (p)
Compute roots of a quadratic (degree 2) polynomial using the
- quadratic formula. The polynomial should be given as a
- vector of coefficients. That is
+ quadratic formula. The polynomial should be given as a
+ vector of coefficients. That is
3*x^2 + 2*x + 1 corresponds to the vector
[1,2,3].
Returns a column vector of the two solutions.
@@ -4723,8 +4723,8 @@ and has period b-a.QuarticFormula (p)
Compute roots of a quartic (degree 4) polynomial using the
- quartic formula. The polynomial should be given as a
- vector of coefficients. That is
+ quartic formula. The polynomial should be given as a
+ vector of coefficients. That is
5*x^4 + 2*x + 1 corresponds to the vector
[1,2,0,0,5].
Returns a column vector of the four solutions.
@@ -4751,7 +4751,7 @@ and has period b-a.
Systems can be solved by just having y be a
- (column) vector everywhere. That is, y0 can
+ (column) vector everywhere. That is, y0 can
be a vector in which case f should take a number
x and a vector of the same size for the second
argument and should return a vector of the same size.
@@ -4904,8 +4904,8 @@ and has period b-a.DividePoly (p,q,&r)Divide two polynomials (as vectors) using long division.
Returns the quotient
- of the two polynomials. The optional argument r
- is used to return the remainder. The remainder will have lower
+ of the two polynomials. The optional argument r
+ is used to return the remainder. The remainder will have lower
degree than q.
See
@@ -5155,7 +5155,7 @@ and has period b-a.
First up to 10 arguments are functions, then optionally
you can specify the limits of the plotting window as
x1, x2,
- y1, y2. If limits are not
+ y1, y2. If limits are not
specified, then the currently set limits apply
(See LinePlotWindow)
@@ -5208,7 +5208,7 @@ and has period b-a.
"origin",
"end",
"both", or
- "none". For
+ "none". For
"window" we can specify
"fit" rather than a vector in which case,
the x range will be set precisely and the y range will be set with
@@ -5231,7 +5231,7 @@ and has period b-a.
LinePlotParametric (xfunc,yfunc,t1,t2,tinc)LinePlotParametric (xfunc,yfunc,t1,t2,tinc,x1,x2,y1,y2)
- Plot a parametric function with a line. First come the functions
+ Plot a parametric function with a line. First come the functions
for x and y then optionally the t limits as t1,t2,tinc, then optionally the
limits as x1,x2,y1,y2.
@@ -5255,7 +5255,7 @@ limits as x1,x2,y1,y2.
LinePlotCParametric (func,t1,t2,tinc)LinePlotCParametric (func,t1,t2,tinc,x1,x2,y1,y2)
- Plot a parametric complex valued function with a line. First comes
+ Plot a parametric complex valued function with a line. First comes
the function that returns x+iy,
then optionally the t limits as t1,t2,tinc, then
optionally the limits as x1,x2,y1,y2.
@@ -5291,7 +5291,7 @@ optionally the limits as x1,x2,y1,y2.
SlopefieldDrawSolution (x, y, dx)
When a slope field plot is active, draw a solution with
- the specified initial condition. The standard
+ the specified initial condition. The standard
Runge-Kutta method is used with increment dx.
Solutions stay on the graph until a different plot is shown or until
you call
@@ -5308,13 +5308,13 @@ optionally the limits as x1,x2,y1,y2.
SlopefieldPlot (func)SlopefieldPlot (func,x1,x2,y1,y2)
- Plot a slope field. The function func
+ Plot a slope field. The function func
should take two real numbers x
and y, or a single complex
number.
Optionally you can specify the limits of the plotting window as
x1, x2,
- y1, y2. If limits are not
+ y1, y2. If limits are not
specified, then the currently set limits apply
(See LinePlotWindow).
@@ -5337,9 +5337,9 @@ optionally the limits as x1,x2,y1,y2.
SurfacePlot (func)SurfacePlot (func,x1,x2,y1,y2,z1,z2)
- Plot a surface function which takes either two arguments or a complex number. First comes the function then optionally limits as x1, x2,
+ Plot a surface function which takes either two arguments or a complex number. First comes the function then optionally limits as x1, x2,
y1, y2,
- z1, z2. If limits are not
+ z1, z2. If limits are not
specified, then the currently set limits apply
(See SurfacePlotWindow).
Genius can only plot a single surface function at this time.
@@ -5372,7 +5372,7 @@ optionally the limits as x1,x2,y1,y2.
VectorfieldDrawSolution (x, y, dt, tlen)
When a vector field plot is active, draw a solution with
- the specified initial condition. The standard
+ the specified initial condition. The standard
Runge-Kutta method is used with increment dt
for an interval of length tlen.
Solutions stay on the graph until a different plot is shown or until
@@ -5390,22 +5390,22 @@ optionally the limits as x1,x2,y1,y2.
VectorfieldPlot (funcx, funcy)VectorfieldPlot (funcx, funcy, x1, x2, y1, y2)
- Plot a two dimensional vector field. The function
+ Plot a two dimensional vector field. The function
funcx
should be the dx/dt of the vectorfield and the function
funcy should be the dy/dt of the vectorfield.
The functions
should take two real numbers x
and y, or a single complex
- number. When the parameter
+ number. When the parameter
VectorfieldNormalized
- is true, then the magnitude of the vectors is normalized. That is, only
+ is true, then the magnitude of the vectors is normalized. That is, only
the direction and not the magnitude is shown.
Optionally you can specify the limits of the plotting window as
x1, x2,
- y1, y2. If limits are not
+ y1, y2. If limits are not
specified, then the currently set limits apply
(See LinePlotWindow).
diff --git a/help/C/genius.txt b/help/C/genius.txt
index a3afc0a..b03f8c0 100644
--- a/help/C/genius.txt
+++ b/help/C/genius.txt
@@ -3638,7 +3638,7 @@ Number Theory
PadicValuation (n,p)
- Returns the padic valuation (number of trailing zeros in base p).
+ Returns the p-adic valuation (number of trailing zeros in base p).
See Planetmath for more information.
@@ -3770,7 +3770,7 @@ Matrix Manipulation
CompoundMatrix (k,A)
- Calculate the kth compund matrix of A.
+ Calculate the kth compound matrix of A.
CountZeroColumns
diff --git a/help/C/genius.xml b/help/C/genius.xml
index 5563ca8..af8aa92 100644
--- a/help/C/genius.xml
+++ b/help/C/genius.xml
@@ -326,7 +326,7 @@ variables. Finally it allows plotting functions using a user friendly dialog bo
work area. If you are running the text only version then the console
will be the only thing that is available to you. If you want to use
&app; as a calculator only, just type in your expression here and it
- willg et evaluated.
+ will be evaluated.
@@ -693,7 +693,7 @@ Values in GEL can be numbers, <
Integers are the first type of number in GEL. Integers are written in the normal way.
1234
-Hexidecimal and octal numbers can be written using C notation. For example:
+Hexadecimal and octal numbers can be written using C notation. For example:
0x123ABC
01234
@@ -1076,7 +1076,7 @@ this should be second nature. However genius can let you pretend it is a
terminator somewhat, if a ; is found at the end of a parenthesis or a block,
genius will itself append a null node to it as if you would have written
;null.
-This is usefull in case you do not want to return a value from say a loop,
+This is useful in case you do not want to return a value from say a loop,
or if you handle the return differently. Note that it will slightly slow down
the code if it is executed too often as there is one more operator involved.
@@ -1310,7 +1310,7 @@ different from = because it never gets translated to a
a.%b
- Element by element the mod operator. Returns the remaineder
+ Element by element the mod operator. Returns the remainder
after element by element a./b.
@@ -1588,7 +1588,7 @@ different from = because it never gets translated to a
a:b
- Build a vector from a to b (or specify a row, column region for the @ operator). For example to get rows 2 to 4 of mamtrix A we could do
+ Build a vector from a to b (or specify a row, column region for the @ operator). For example to get rows 2 to 4 of matrix A we could do
A@(2:4,)
as 2:4 will return a vector
@@ -1706,7 +1706,7 @@ until do
do while
do until ]]>
-These are similiar to other languages, however they return the result of the last iteration or NULL if no iteration was done. In the boolean expression, = is translated into == just as for the if statement.
+These are similar to other languages, however they return the result of the last iteration or NULL if no iteration was done. In the boolean expression, = is translated into == just as for the if statement.
@@ -1793,7 +1793,7 @@ If no body is executed (for example sum i=1 to 0 do ...)
Normally = is translated to == if
- it happens to be somewhere where GEL is expecing a condition such as
+ it happens to be somewhere where GEL is expecting a condition such as
in the if condition. For example
if a=b then c
if a==b then c
@@ -1817,7 +1817,7 @@ if a==b then c
To build up logical expressions use the words not,
and, or, xor.
The operators or and and are
-special beasts as they evaluate their arguemnts one by one, so the usual trick
+special beasts as they evaluate their arguments one by one, so the usual trick
for conditional evaluation works here as well. For example, 1 or a=1 will not set
a=1 since the first argument was true.
@@ -1902,7 +1902,7 @@ f();
function f() = (a:=5);
f();
- Sometimes, however, it is neccessary to set
+ Sometimes, however, it is necessary to set
a global variable from inside a function. When this behaviour is needed,
use the
set function. Passing a string or a quoted identifier to
@@ -1923,7 +1923,7 @@ or:
So to recap in a more technical language: Genius operates with
- different numberred contexts. The top level is the context 0
+ different numbered contexts. The top level is the context 0
(zero). Whenever a function is entered, the context is raised,
and when the function returns the context is lowered. A function
or a variable is always visible from all higher numbered contexts.
@@ -1994,7 +1994,7 @@ Example:
References
- It may be neccessary for some functions to return more than one value.
+ It may be necessary for some functions to return more than one value.
This may be accomplished by returning a vector of values, but many
times it is convenient to use passing a reference to a variable.
You pass a reference to a variable to a function, and the function
@@ -2043,7 +2043,7 @@ gives us 4.
a
- Identifier. Here we would be setting the varable of name
+ Identifier. Here we would be setting the variable of name
a.
@@ -2122,7 +2122,7 @@ could use the following code.
as just sequence of lines as if were entered on the command line.
In particular, you do not need to enter the separator at the end of the
line (unless it is of course part of several statements inside
- parenteses).
+ parentheses).
The following code will produce an error when entered on the top
@@ -2140,7 +2140,7 @@ else
go on to the next
line, it will see else, and it will produce
a parsing error. To fix this, use parentheses. &app; will not
- be satisfied until it has found that all parenteses are closed.
+ be satisfied until it has found that all parentheses are closed.
if Something() then (
DoSomething()
) else (
diff --git a/lib/library-strings.c b/lib/library-strings.c
index c3570f1..2ebf4c6 100644
--- a/lib/library-strings.c
+++ b/lib/library-strings.c
@@ -64,7 +64,7 @@ char *fake = N_("Test if Mp is a Mersenne prime using the Lucas-Lehmer test");
char *fake = N_("Return all maximal prime power factors of a number");
char *fake = N_("Vector with the known Mersenne prime exponents");
char *fake = N_("Return the Moebius mu function evaluated in n");
-char *fake = N_("Returns the padic valuation (number of trailing zeros in base p).");
+char *fake = N_("Returns the p-adic valuation (number of trailing zeros in base p).");
char *fake = N_("Compute a^b mod m");
char *fake = N_("Return all prime factors of a number");
char *fake = N_("Pseudoprime test, true iff b^(n-1) == 1 (mod n)");
@@ -74,7 +74,7 @@ char *fake = N_("Find square root of n mod p (a prime). Null is returned if not
char *fake = N_("Apply a function over all entries of a matrix and return a matrix of the results");
char *fake = N_("Apply a function over all entries of 2 matrices (or 1 value and 1 matrix) and return a matrix of the results");
char *fake = N_("Remove column(s) and row(s) from a matrix");
-char *fake = N_("Calculate the kth compund matrix of A");
+char *fake = N_("Calculate the kth compound matrix of A");
char *fake = N_("Delete a column of a matrix");
char *fake = N_("Delete a row of a matrix");
char *fake = N_("Get the dot product of two vectors (no conjugates)");
diff --git a/lib/linear_algebra/misc.gel b/lib/linear_algebra/misc.gel
index 7697cfc..2b310aa 100644
--- a/lib/linear_algebra/misc.gel
+++ b/lib/linear_algebra/misc.gel
@@ -271,7 +271,7 @@ function LowerTriangular(M) = (
UpperTriangular (M.').'
)
-SetHelp("CompoundMatrix", "matrix", "Calculate the kth compund matrix of A")
+SetHelp("CompoundMatrix", "matrix", "Calculate the kth compound matrix of A")
function CompoundMatrix(k,A) = (
if not IsInteger(k) or k < 1 or k > min(columns(A),rows(A)) or not IsMatrix(A) then
(error("CompoundMatrix: arguments of right type/size");bailout);