]> www.ginac.de Git - ginac.git/commitdiff
Fix typos in comments.
authorRichard Kreckel <kreckel@ginac.de>
Wed, 13 Apr 2016 06:50:41 +0000 (08:50 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Wed, 13 Apr 2016 06:50:41 +0000 (08:50 +0200)
14 files changed:
check/exam_clifford.cpp
check/exam_misc.cpp
check/exam_paranoia.cpp
check/randomize_serials.cpp
check/time_antipode.cpp
doc/tutorial/ginac.texi
ginac/function.cppy
ginac/normal.cpp
ginac/normal.h
ginac/numeric.cpp
ginac/parser/parser.cpp
ginac/polynomial/collect_vargs.cpp
ginac/polynomial/mgcd.cpp
ginac/polynomial/optimal_vars_finder.cpp

index d07ded1457e06e15d7685692d6096456a9bb60aa..6b1f53f8c4a5bca1de13dde74b50b43b4b1f39c1 100644 (file)
@@ -571,7 +571,7 @@ unsigned exam_clifford()
        result += clifford_check6<varidx>(ex_to<matrix>(diag_matrix({-1, 0, 1, -1})))+clifford_check6<idx>(ex_to<matrix>(diag_matrix({-1, 0, 1, -1})));; cout << '.' << flush;
        result += clifford_check6<varidx>(ex_to<matrix>(diag_matrix({-3, 0, 2, -1})))+clifford_check6<idx>(ex_to<matrix>(diag_matrix({-3, 0, 2, -1})));; cout << '.' << flush;
 
-       realsymbol s("s"), t("t"); // symbolic entries in matric
+       realsymbol s("s"), t("t"); // symbolic entries in matrix
        result += clifford_check6<varidx>(ex_to<matrix>(diag_matrix({-1, 1, s, t})))+clifford_check6<idx>(ex_to<matrix>(diag_matrix({-1, 1, s, t})));; cout << '.' << flush;
 
        matrix A(4, 4);
index 06c75866177fff8ab2e133e0f6e5801cff42f789..ff1c5ef01d9737783c314b519924f2fe01533b97 100644 (file)
@@ -164,7 +164,7 @@ static unsigned exam_operator_semantics()
                ++result;
        }
        
-       // Prefix/postfix increment/decrement behaviour:
+       // Prefix/postfix increment/decrement behavior:
        e1 = 7; e2 = 4;
        i1 = 7; i2 = 4;
        e1 = (--e2 = 2)++;
index 5c8ef03ccffbd555256362d19a32f185fee1bef8..47c03a0ce88cc1ac909ecab8dc280b9f99ceb0b6 100644 (file)
@@ -1,7 +1,7 @@
 /** @file exam_paranoia.cpp
  *
  *  This set of tests checks for some of GiNaC's oopses which showed up during
- *  development.  Things were evaluated wrongly and so.  Such a sick behaviour
+ *  development.  Things were evaluated wrongly and so.  Such a sick behavior
  *  shouldn't occur any more.  But we are paranoic and we want to exclude these
  *  these oopses for good, so we run those stupid tests... */
 
index 11185f0b894e5a716e3c7bde9416ff43d72b8abe..5c4f3e44b8eb1f376793e1fbe89284eb8357c763 100644 (file)
@@ -34,7 +34,7 @@ using namespace std;
  *  their hash values.  If the hash values are unpredictable, then so are
  *  the canonical orderings.  If the canonical orderings are unpredictable,
  *  all subsequent times are subject to some variation.  This variation,
- *  however is natural and desireable for two reasons: First, we cannot know
+ *  however is natural and desirable for two reasons: First, we cannot know
  *  how many symbols have been generated before in real world computations.
  *  Second, the following timings are subject to some semi-random variation
  *  anyways because short timings need to be repeated until enough time has
index ba1169b41d10afc2ab543d8526fb8598465dd2a5..a58a351b43f4835058c67e1d8cc08a0621209e3b 100644 (file)
@@ -133,7 +133,7 @@ const ex Sigma::evaluate(const symbol &x, const unsigned grad) const
 }
 
 
-/** Class of vertices of type Sigma_flipped, sitting in the upper fermionline of Vacuum; no consequences for Gamma. */
+/** Class of vertices of type Sigma_flipped, sitting in the upper fermion line of Vacuum; no consequences for Gamma. */
 class Sigma_flipped : public Sigma {
 public:
        Sigma_flipped(ijpair ij = ijpair(0,0)) : Sigma(ij) { }
index 17718f83936564157ca2aacc38699ec14ebacb6d..b69455d7104f5aeed36be8b6ae87a44a45e815b1 100644 (file)
@@ -5979,7 +5979,7 @@ If both flags are set (as in the last call), then GiNaC tries to get
 the maximal expansion. For example, for the exponent GiNaC firstly expands
 the argument and then the function. For the logarithm and absolute value,
 GiNaC uses the opposite order: firstly expands the function and then its
-argument. Of course, a user can fine-tune this behaviour by sequential
+argument. Of course, a user can fine-tune this behavior by sequential
 calls of several @code{expand()} methods with desired flags.
 
 @node Multiple polylogarithms, Complex expressions, Built-in functions, Methods and functions
index 7df57168996cd42a6518cde4b0505569cb1c989e..83564833a07b44c5f06eab29beefe0324ad52a19 100644 (file)
@@ -448,7 +448,7 @@ ex function::evalf() const
 }
 
 /**
- *  This method is defined to be in line with behaviour of function::return_type()
+ *  This method is defined to be in line with behavior of function::return_type()
  */
 ex function::eval_ncmul(const exvector & v) const
 {
@@ -764,7 +764,7 @@ ex function::expl_derivative(const symbol & s) const // explicit differentiation
                        // end of generated lines
                }
        }
-       // There is no fallback for explicit deriviative.
+       // There is no fallback for explicit derivative.
        throw(std::logic_error("function::expl_derivative(): explicit derivation is called, but no such function defined"));
 }
 
index 462a8ad5192a8805dc93d20be4a363d49438fccd..8b6c25c60e39eb397caec65dbdb3c449a21eb05d 100644 (file)
@@ -146,7 +146,7 @@ struct sym_desc {
        /** Maximum number of terms of leading coefficient of symbol in both polynomials */
        size_t max_lcnops;
 
-       /** Commparison operator for sorting */
+       /** Comparison operator for sorting */
        bool operator<(const sym_desc &x) const
        {
                if (max_deg == x.max_deg)
index 7e94986405af12aea870defe8bf75e3bb8ececee..739ed598ebf98c8111fa8c853bd8c517baa1c7dd 100644 (file)
@@ -31,7 +31,7 @@
 namespace GiNaC {
 
 /**
- * Flags to control the behaviour of gcd() and friends
+ * Flags to control the behavior of gcd() and friends
  */
 struct gcd_options
 {
index e45fe9c98320dc3636154e93ed8d690e1b4e6a54..74e20e8a9c85833803c96ccf0bbd53217bcf455e 100644 (file)
@@ -89,7 +89,7 @@ numeric::numeric()
 numeric::numeric(int i)
 {
        // Not the whole int-range is available if we don't cast to long
-       // first.  This is due to the behaviour of the cl_I-ctor, which
+       // first.  This is due to the behavior of the cl_I-ctor, which
        // emphasizes efficiency.  However, if the integer is small enough
        // we save space and dereferences by using an immediate type.
        // (C.f. <cln/object.h>)
@@ -110,7 +110,7 @@ numeric::numeric(int i)
 numeric::numeric(unsigned int i)
 {
        // Not the whole uint-range is available if we don't cast to ulong
-       // first.  This is due to the behaviour of the cl_I-ctor, which
+       // first.  This is due to the behavior of the cl_I-ctor, which
        // emphasizes efficiency.  However, if the integer is small enough
        // we save space and dereferences by using an immediate type.
        // (C.f. <cln/object.h>)
@@ -2217,7 +2217,7 @@ const numeric bernoulli(const numeric &nn)
 
        results.reserve(n/2);
        for (unsigned p=next_r; p<=n;  p+=2) {
-               cln::cl_I  c = 1;  // seed for binonmial coefficients
+               cln::cl_I  c = 1;  // seed for binomial coefficients
                cln::cl_RA b = cln::cl_RA(p-1)/-2;
                // The CLN manual says: "The conversion from `unsigned int' works only
                // if the argument is < 2^29" (This is for 32 Bit machines. More
index cdfc5af6f3f2b21c61710342bd8fade71fd0af26..8cb3bf14c8a5b292f039daeb9a34ea20ba0f4c7a 100644 (file)
@@ -158,7 +158,7 @@ ex parser::parse_unary_expr()
        // -(a) 
        // +a
        // +(a)
-       // Delegete the work to parse_binop_rhs(), otherwise we end up
+       // Delegate the work to parse_binop_rhs(), otherwise we end up
        // duplicating it here. 
        ex lhs = _ex0; // silly trick
        ex e = parse_binop_rhs(0, lhs);
index e77a3b6791427d16c6d27f83eda8fb474e28f6a7..93819d376127dc34afe4642d7a043aea138858a2 100644 (file)
@@ -129,7 +129,7 @@ static void wipe_out_zeros(ex_collect_priv_t& m)
 {
        auto i = m.begin();
        while (i != m.end()) {
-               // be careful to not invalide iterator, use post-increment
+               // be careful to not invalidate the iterator, use post-increment
                // for that, see e.g.
                // http://coding.derkeiler.com/Archive/C_CPP/comp.lang.cpp/2004-02/0502.html
                if (i->second.is_zero())
index d66369eeba8b4e40e6bb57633967e483d2916fa7..e546fea3557fd9d8b9910f19812cab910fe9b49c 100644 (file)
@@ -52,7 +52,7 @@ static cln::cl_I extract_integer_content(ex& Apr, const ex& A)
                }
        } else {
                Apr = (A/icont_).expand();
-               // A is a polynomail over rationals, so GCD is defined
+               // A is a polynomial over rationals, so GCD is defined
                // up to arbitrary rational number.
                return n1;
        }
index 58696bc4d4af28da284464105bea06b40d2fd70d..5f4fc96129d388285cbb63dd5b4af7ab5809e1bc 100644 (file)
@@ -72,7 +72,7 @@ struct sym_desc
        /** Maximum number of terms of leading coefficient of symbol in both polynomials */
        std::size_t max_lcnops;
 
-       /** Commparison operator for sorting */
+       /** Comparison operator for sorting */
        bool operator<(const sym_desc &x) const
        {
                if (max_deg == x.max_deg)