]> www.ginac.de Git - ginac.git/commitdiff
Fix some apparent typos and misindentations.
authorRichard Kreckel <kreckel@ginac.de>
Fri, 31 Jul 2015 22:41:30 +0000 (00:41 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Fri, 31 Jul 2015 22:41:30 +0000 (00:41 +0200)
34 files changed:
check/check_numeric.cpp
check/exam_clifford.cpp
check/exam_inifcns.cpp
check/exam_matrices.cpp
check/exam_misc.cpp
check/exam_numeric.cpp
check/genex.cpp
check/match_bug.cpp
check/randomize_serials.cpp
check/time_uvar_gcd.cpp
ginac/archive.cpp
ginac/clifford.cpp
ginac/color.cpp
ginac/excompiler.cpp
ginac/expairseq.cpp
ginac/expairseq.h
ginac/flags.h
ginac/indexed.cpp
ginac/indexed.h
ginac/inifcns.cpp
ginac/inifcns_nstdsums.cpp
ginac/integral.cpp
ginac/matrix.cpp
ginac/matrix.h
ginac/mul.cpp
ginac/normal.cpp
ginac/numeric.h
ginac/power.cpp
ginac/pseries.cpp
ginac/registrar.h
ginac/relational.cpp
ginac/relational.h
ginac/symmetry.h
ginac/utils.h

index fe98933a69b1593f5d5db6df188a04165666e94c..6c14623f71bd018652b53c7d9622993b74820026 100644 (file)
@@ -1,6 +1,6 @@
 /** @file check_numeric.cpp
  *
- *  These exams creates some numbers and check the result of several boolean
+ *  These exams creates some numbers and check the result of several Boolean
  *  tests on these numbers like is_integer() etc... */
 
 /*
index 69080ddefe52feb5e6aaad59e9c08846dbd06144..420089fdca678442e22877c42963f910eae3c7b3 100644 (file)
@@ -247,7 +247,7 @@ static unsigned clifford_check3()
        e = dirac_gamma(mu, 0) * dirac_gamma(mu.toggle_variance(), 1) * dirac_gamma(nu, 0) * dirac_gamma(nu.toggle_variance(), 1);
        result += check_equal_simplify(dirac_trace(e, 0), 4 * dim * dirac_ONE(1));
        result += check_equal_simplify(dirac_trace(e, 1), 4 * dim * dirac_ONE(0));
-       // Fails with new tinfo mechanism because the order of gamme matrices with different rl depends on luck. 
+       // Fails with new tinfo mechanism because the order of gamma matrices with different rl depends on luck.
        // TODO: better check.
        //result += check_equal_simplify(dirac_trace(e, 2), canonicalize_clifford(e)); // e will be canonicalized by the calculation of the trace
        result += check_equal_simplify(dirac_trace(e, lst(0, 1)), 16 * dim);
@@ -576,34 +576,34 @@ unsigned exam_clifford()
        result += clifford_check6<varidx>(ex_to<matrix>(diag_matrix(lst(-1, 1, s, t))))+clifford_check6<idx>(ex_to<matrix>(diag_matrix(lst(-1, 1, s, t))));; cout << '.' << flush;
 
        matrix A(4, 4);
-       A = 1, 0, 0, 0, // anticommuting, not symmetric, Tr=0
-               0, -1, 0, 0,
-               0, 0, 0, -1,
-               0, 0, 1, 0; 
+       A = 1,  0,  0,  0, // anticommuting, not symmetric, Tr=0
+           0, -1,  0,  0,
+           0,  0,  0, -1,
+           0,  0,  1,  0;
        result += clifford_check6<varidx>(A)+clifford_check6<idx>(A);; cout << '.' << flush;
 
-       A = 1, 0, 0, 0, // anticommuting, not symmetric, Tr=2
-               0, 1, 0, 0,
-               0, 0, 0, -1,
-               0, 0, 1, 0; 
+       A = 1,  0,  0,  0, // anticommuting, not symmetric, Tr=2
+           0,  1,  0,  0,
+           0,  0,  0, -1,
+           0,  0,  1,  0;
        result += clifford_check6<varidx>(A)+clifford_check6<idx>(A);; cout << '.' << flush;
 
-       A = 1, 0, 0, 0, // not anticommuting, symmetric, Tr=0
-               0, -1, 0, 0,
-               0, 0, 0, -1,
-               0, 0, -1, 0; 
+       A = 1,  0,  0,  0, // not anticommuting, symmetric, Tr=0
+           0, -1,  0,  0,
+           0,  0,  0, -1,
+           0,  0, -1,  0;
        result += clifford_check6<varidx>(A)+clifford_check6<idx>(A);; cout << '.' << flush;
 
-       A = 1, 0, 0, 0, // not anticommuting, symmetric, Tr=2
-               0, 1, 0, 0,
-               0, 0, 0, -1,
-               0, 0, -1, 0; 
+       A = 1,  0,  0,  0, // not anticommuting, symmetric, Tr=2
+           0,  1,  0,  0,
+           0,  0,  0, -1,
+           0,  0, -1,  0;
        result += clifford_check6<varidx>(A)+clifford_check6<idx>(A);; cout << '.' << flush;
 
-       A = 1, 1, 0, 0, // not anticommuting, not symmetric, Tr=4
-               0, 1, 1, 0,
-               0, 0, 1, 1,
-               0, 0, 0, 1; 
+       A = 1,  1,  0,  0, // not anticommuting, not symmetric, Tr=4
+           0,  1,  1,  0,
+           0,  0,  1,  1,
+           0,  0,  0,  1;
        result += clifford_check6<varidx>(A)+clifford_check6<idx>(A);; cout << '.' << flush;
 
        symbol dim("D");
index bd7168ed704f328ffd774794d80ea913d22df392..03c2580772905e5ac283f69c509895eff87461e6 100644 (file)
@@ -349,7 +349,7 @@ static unsigned inifcns_consist_various()
        return result;
 }
 
-/* Several tests for derivetives */
+/* Several tests for derivatives */
 static unsigned inifcns_consist_derivatives()
 {
        unsigned result = 0;
index 1517766180e5d1d09356a89e5f1f9a9fc87c0f05..3e1c25e5de5ae6af233f23272763860432758c2b 100644 (file)
@@ -143,9 +143,9 @@ static unsigned matrix_invert2()
        ex det = m.determinant();
        
        if ((normal(m_i(0,0)*det) != d) ||
-               (normal(m_i(0,1)*det) != -b) ||
-               (normal(m_i(1,0)*det) != -c) ||
-               (normal(m_i(1,1)*det) != a)) {
+           (normal(m_i(0,1)*det) != -b) ||
+           (normal(m_i(1,0)*det) != -c) ||
+           (normal(m_i(1,1)*det) != a)) {
                clog << "inversion of 2x2 matrix " << m
                     << " erroneously returned " << m_i << endl;
                ++result;
index e94ab11b91e62a177e03a401eb159ab974ae9607..cdbb7637b30c2ed92b4c4bd43ef510e7dc592b25 100644 (file)
@@ -220,7 +220,7 @@ static unsigned exam_subs()
        }
 
        // And this used to fail in GiNaC 1.5.8 because it first substituted
-       // exp(x) -> exp(log(x)) -> x, and then substitued again x -> log(x)
+       // exp(x) -> exp(log(x)) -> x, and then substituted again x -> log(x)
        e1 = exp(x);
        e2 = e1.subs(x == log(x));
        if (!e2.is_equal(x)) {
index 27d68f78b9167b804f24e68451d9362ed07e610d..8170e36477a414a8468b4f949ce02bd4a1306764 100644 (file)
@@ -1,6 +1,6 @@
 /** @file exam_numeric.cpp
  *
- *  These exams creates some numbers and check the result of several boolean
+ *  These exams creates some numbers and check the result of several Boolean
  *  tests on these numbers like is_integer() etc... */
 
 /*
index fe8ed91dda09bef0750f52706e96ceb071890a01..ce4684c9475985018b2a9f61eff88120505d9506 100644 (file)
@@ -55,13 +55,13 @@ dense_bivariate_poly(const symbol & x1, const symbol & x2, unsigned degree)
        return bipoly;
 }
 
-/* Chose a randum symbol or number from the argument list. */
+/* Chose a random symbol or number from the argument list. */
 const ex
 random_symbol(const symbol & x,
-                         const symbol & y,
-                         const symbol & z,
-                         bool rational = true,
-                         bool complex = false)
+              const symbol & y,
+              const symbol & z,
+              bool rational = true,
+              bool complex = false)
 {
        ex e;
        switch (abs(rand()) % 4) {
@@ -93,12 +93,12 @@ random_symbol(const symbol & x,
 /* Create a sparse random tree in three symbols. */
 const ex
 sparse_tree(const symbol & x,
-                       const symbol & y,
-                       const symbol & z,
-                       int level,
-                       bool trig = false,      // true includes trigonomatric functions
-                       bool rational = true, // false excludes coefficients in Q
-                       bool complex = false) // true includes complex numbers
+            const symbol & y,
+            const symbol & z,
+            int level,
+            bool trig = false, // true includes trigonometric functions
+            bool rational = true, // false excludes coefficients in Q
+            bool complex = false) // true includes complex numbers
 {
        if (level == 0)
                return random_symbol(x,y,z,rational,complex);
index 1d4ef372fd12c7450b5dbd30c305a3484985fe4c..87434a98d9973b5ef856f71a7efc690bc3fbda84 100644 (file)
@@ -30,7 +30,7 @@ using namespace GiNaC;
 /*
  * basic::match(lst&) used to have an obscure side effect: repl_lst
  * could be modified even if the match failed! Although this "feature"
- * was documented it happend to be very confusing *even for GiNaC
+ * was documented it happened to be very confusing *even for GiNaC
  * developers*, see 
  * http://www.ginac.de/pipermail/ginac-devel/2006-April/000942.html
  *
index b0e53ba4a8e2f6a5f8c4c8e9f174f62d34eb5136..5016a0c007a2feb9460700609b1a2a31cefd3c9a 100644 (file)
@@ -1,6 +1,6 @@
 /** @file randomize_serials.cpp
  *
- *  Utilitiy function used by the benchmarks.
+ *  Utility function used by the benchmarks.
  */
 
 /*
@@ -28,7 +28,7 @@ using namespace GiNaC;
 #include <ctime>
 using namespace std;
 
-/** Generate a random amount of symbols and destroy them again immediatly.
+/** Generate a random amount of symbols and destroy them again immediately.
  *  This operation effectively makes the serial numbers of all subsequent
  *  symbols unpredictable.  If the serials are unpredictable, then so are
  *  their hash values.  If the hash values are unpredictable, then so are
index 10135d77a1551388b0740d2f659820edbdbd0cf7..11fbe1ec1ce9602c6d9ba1324ac3114c7d5d76ea 100644 (file)
@@ -1883,7 +1883,7 @@ run_with_random_intputs(const unsigned d1, const unsigned d2)
 
 int main(int argc, char** argv)
 {
-       std::cout << "timing univarite GCD" << std::endl << std::flush;
+       std::cout << "timing univariate GCD" << std::endl << std::flush;
        run_with_random_intputs(100, 50);
        // run PRS gcd tests, both with upoly and ex
        run_test(p1_srep, p2_srep, true, true);
index d3a7f63f1a99225d64c8b22acad9cf6bba298725..fc9ec2c4c64d042756d71350fd087900c0bd3a1e 100644 (file)
@@ -320,7 +320,7 @@ archive_atom archive::atomize(const std::string &s) const
 const std::string &archive::unatomize(archive_atom id) const
 {
        if (id >= atoms.size())
-               throw (std::range_error("archive::unatomizee(): atom ID out of range"));
+               throw (std::range_error("archive::unatomize(): atom ID out of range"));
 
        return atoms[id];
 }
index 7d55bee1ab91a26c747d45862baeb6948f7f030a..a66c835583de98b1c93d495707923997f99b7b04 100644 (file)
@@ -349,7 +349,7 @@ bool diracgamma::contract_with(exvector::iterator self, exvector::iterator other
 
        if (is_a<clifford>(*other)) {
 
-               // Contraction only makes sense if the represenation labels are equal
+               // Contraction only makes sense if the representation labels are equal
                if (ex_to<clifford>(*other).get_representation_label() != rl)
                        return false;
 
@@ -456,7 +456,7 @@ bool cliffordunit::contract_with(exvector::iterator self, exvector::iterator oth
        unsigned char rl = unit.get_representation_label();
 
        if (is_a<clifford>(*other)) {
-               // Contraction only makes sense if the represenation labels are equal
+               // Contraction only makes sense if the representation labels are equal
                // and the metrics are the same
                if ((ex_to<clifford>(*other).get_representation_label() != rl) 
                    && unit.same_metric(*other))
index 891d55c1f9d309cc223c8996c3d4585263c57219..9a0d353460d87de519f2dc2fca362f3fa0669a9f 100644 (file)
@@ -195,7 +195,7 @@ ex color::thiscontainer(std::auto_ptr<exvector> vp) const
  *
  *  @param iv3 Vector of 3 indices
  *  @param iv2 Vector of 2 indices, must be a subset of iv3
- *  @param sig Returs sign introduced by index permutation
+ *  @param sig Returns sign introduced by index permutation
  *  @return the free index (the one that is in iv3 but not in iv2) */
 static ex permute_free_index_to_front(const exvector & iv3, const exvector & iv2, int & sig)
 {
@@ -314,7 +314,7 @@ bool su3t::contract_with(exvector::iterator self, exvector::iterator other, exve
 
        if (is_exactly_a<su3t>(other->op(0))) {
 
-               // Contraction only makes sense if the represenation labels are equal
+               // Contraction only makes sense if the representation labels are equal
                GINAC_ASSERT(is_a<color>(*other));
                if (ex_to<color>(*other).get_representation_label() != rl)
                        return false;
index c3323512d8677b87ae4f29aa6279702bd8810363..d7897c014e92827374ebcc70d0ff11f86dc01e45 100644 (file)
@@ -72,7 +72,7 @@ class excompiler
        std::vector<filedesc> filelist; /**< List of all opened modules */
 public:
        /**
-        * Complete clean-up of opend modules is done on destruction.
+        * Complete clean-up of opened modules is done on destruction.
         */
        ~excompiler()
        {
@@ -181,7 +181,7 @@ public:
 };
 
 /**
- * This static object manages the modules opened by the complile_ex and link_ex
+ * This static object manages the modules opened by the compile_ex and link_ex
  * functions. On program termination its dtor is called and all open modules
  * are closed. The associated source and so-files are eventually deleted then
  * as well.
index fe03ce899999d25e8f79c33c6a77b61fd5765877..c7b3e9ed251318e6f52c8791840beb078b49fa4e 100644 (file)
@@ -1524,7 +1524,7 @@ bool expairseq::is_canonical() const
                return 1;
        
 #if EXPAIRSEQ_USE_HASHTAB
-       if (hashtabsize > 0) return 1; // not canoncalized
+       if (hashtabsize > 0) return 1; // not canonicalized
 #endif // EXPAIRSEQ_USE_HASHTAB
        
        epvector::const_iterator it = seq.begin(), itend = seq.end();
index fca1e670f10d749fa770b1e10a0938a50bab08e3..82489f8ceefba218bd11a37f1572bf439e9497f1 100644 (file)
@@ -175,9 +175,9 @@ protected:
 };
 
 /** Class to handle the renaming of dummy indices. It holds a vector of
- *  indices that are being used in the expression so-far. If the same
+ *  indices that are being used in the expression so far. If the same
  *  index occurs again as a dummy index in a factor, it is to be renamed.
- *  Unless dummy index renaming was swichted of, of course ;-) . */
+ *  Unless dummy index renaming was switched off, of course ;-) . */
 class make_flat_inserter
 {
        public:
index b9f47164119d32314bae6f2caf0aa0de84d80104..41965e5020e45fb0956aeb6d6ef2f9e993e52b2c 100644 (file)
@@ -32,7 +32,7 @@ public:
                expand_indexed = 0x0001,      ///< expands (a+b).i to a.i+b.i
                expand_function_args = 0x0002, ///< expands the arguments of functions
                expand_rename_idx = 0x0004, ///< used internally by mul::expand()
-               expand_transcendental = 0x0008 ///< expands trancendental functions like log and exp
+               expand_transcendental = 0x0008 ///< expands transcendental functions like log and exp
        };
 };
 
@@ -55,7 +55,7 @@ public:
                pattern_is_product = 0x0004,     ///< used internally by expairseq::subschildren()
                pattern_is_not_product = 0x0008, ///< used internally by expairseq::subschildren()
                no_index_renaming = 0x0010,
-               // To indicate that we want to substitue an index by something that is
+               // To indicate that we want to substitute an index by something that
                // is not an index. Without this flag the index value would be
                // substituted in that case.
                really_subs_idx = 0x0020
index b62e5d4dd917527556985d6c3bdc8e4773d6ebda..873a9ad0b9661d721f14d09439ab8256661b7260 100644 (file)
@@ -648,7 +648,7 @@ bool reposition_dummy_indices(ex & e, exvector & variant_dummy_indices, exvector
        }
 
        // In the case where a dummy symbol occurs twice in the same indexed object
-       // we try all posibilities of raising/lowering and keep the least one in
+       // we try all possibilities of raising/lowering and keep the least one in
        // the sense of ex_is_less.
        ex optimal_e = e;
        size_t numpossibs = 1 << local_var_dummies.size();
@@ -988,7 +988,7 @@ public:
        terminfo(const ex & orig_, const ex & symm_) : orig(orig_), symm(symm_) {}
 
        ex orig; /**< original term */
-       ex symm; /**< symmtrized term */
+       ex symm; /**< symmetrized term */
 };
 
 class terminfo_is_less {
index 4edfd0cbcb4dfcd9293eb3d60d5dd3821cd67dcf..69e0369227b9a53f13cc1a4b5d9d0aafe1d18dd9 100644 (file)
@@ -255,7 +255,7 @@ protected:
 exvector get_all_dummy_indices(const ex & e);
 
 /** More reliable version of the form. The former assumes that e is an
-  * expanded epxression. */
+  * expanded expression. */
 exvector get_all_dummy_indices_safely(const ex & e);
 
 /** Returns b with all dummy indices, which are listed in va, renamed 
@@ -279,7 +279,7 @@ lst rename_dummy_indices_uniquely(const exvector & va, const exvector & vb);
  *  indices with the corresponding numeric values without variance.
  *
  *  @param e the given expression
- *  @param subs_idx indicates if variance of dummy indixes should be neglected
+ *  @param subs_idx indicates if variance of dummy indices should be neglected
  */
 ex expand_dummy_sum(const ex & e, bool subs_idx = false);
 
index ecb6e0072fb8333067ab5c54ba8d7453c0dacc97..9ac5ceba882add64f91025c733c2abd20d7d3450 100644 (file)
@@ -956,7 +956,7 @@ static ex binomial_eval(const ex & x, const ex &y)
                return binomial(x, y).hold();
 }
 
-// At the moment the numeric evaluation of a binomail function always
+// At the moment the numeric evaluation of a binomial function always
 // gives a real number, but if this would be implemented using the gamma
 // function, also complex conjugation should be changed (or rather, deleted).
 static ex binomial_conjugate(const ex & x, const ex & y)
index ee667752124b8e2391ec6e4946f4b6d84c487da3..24a17a60a872a0ae72c7774f02b7589a26b1f53d 100644 (file)
@@ -25,7 +25,7 @@
  *      0, 1 and -1 --- or in compactified --- a string with zeros in front of 1 or -1 is written as a single
  *      number --- notation.
  *
- *    - All functions can be nummerically evaluated with arguments in the whole complex plane. The parameters
+ *    - All functions can be numerically evaluated with arguments in the whole complex plane. The parameters
  *      for Li, zeta and S must be positive integers. If you want to have an alternating Euler sum, you have
  *      to give the signs of the parameters as a second argument s to zeta(m,s) containing 1 and -1.
  *
index 170522af80f84096faf8d37ec1ac456f6f55ab51..7a9fcbb3dad92af1dd16d5e781392863c18568d8 100644 (file)
@@ -185,7 +185,7 @@ ex integral::evalf(int level) const
        }
 
        // 12.34 is just an arbitrary number used to check whether a number
-       // results after subsituting a number for the integration variable.
+       // results after substituting a number for the integration variable.
        if (is_exactly_a<numeric>(ea) && is_exactly_a<numeric>(eb) 
                        && is_exactly_a<numeric>(ef.subs(x==12.34).evalf())) {
                        return adaptivesimpson(x, ea, eb, ef);
index cfe3d6ecd3dad3a9f64d02d6a321415208c72455..3c46b17efa87674b0ab5fbd4a3780ab9899066c0 100644 (file)
@@ -888,7 +888,7 @@ ex matrix::trace() const
 
 
 /** Characteristic Polynomial.  Following mathematica notation the
- *  characteristic polynomial of a matrix M is defined as the determiant of
+ *  characteristic polynomial of a matrix M is defined as the determinant of
  *  (M - lambda * 1) where 1 stands for the unit matrix of the same dimension
  *  as M.  Note that some CASs define it with a sign inside the determinant
  *  which gives rise to an overall sign if the dimension is odd.  This method
@@ -1118,7 +1118,7 @@ unsigned matrix::rank() const
  *  more than once.  According to W.M.Gentleman and S.C.Johnson this algorithm
  *  is better than elimination schemes for matrices of sparse multivariate
  *  polynomials and also for matrices of dense univariate polynomials if the
- *  matrix' dimesion is larger than 7.
+ *  matrix' dimension is larger than 7.
  *
  *  @return the determinant as a new expression (in expanded form)
  *  @see matrix::determinant() */
@@ -1496,7 +1496,7 @@ int matrix::fraction_free_elimination(const bool det)
  *  @param co is the column to be inspected
  *  @param symbolic signal if we want the first non-zero element to be pivoted
  *  (true) or the one with the largest absolute value (false).
- *  @return 0 if no interchange occured, -1 if all are zero (usually signaling
+ *  @return 0 if no interchange occurred, -1 if all are zero (usually signaling
  *  a degeneracy) and positive integer k means that rows ro and k were swapped.
  */
 int matrix::pivot(unsigned ro, unsigned co, bool symbolic)
index 56470651ec0992616c867e7fa67ee3d7c21ee2e3..759e825ab4ca06c7dedf446a25d325b00e32402e 100644 (file)
@@ -101,7 +101,7 @@ public:
        matrix(unsigned r, unsigned c, const exvector & m2);
        matrix(unsigned r, unsigned c, const lst & l);
 
-       // First step of initialization of matrix with a comma-separated seqeuence
+       // First step of initialization of matrix with a comma-separated sequence
        // of expressions. Subsequent steps are handled by matrix_init<>::operator,().
        matrix_init<ex, exvector::iterator> operator=(const ex & x)
        {
index 22133a74c06fc72ab9ad2d1a5b30b5f31a9ecc8e..0720908850db8ceac1e9892a2a535ae2aa6d9a82 100644 (file)
@@ -764,7 +764,7 @@ bool tryfactsubs(const ex & origfactor, const ex & patternfactor, int & nummatch
        return true;
 }
 
-/** Checks wheter e matches to the pattern pat and the (possibly to be updated)
+/** Checks whether e matches to the pattern pat and the (possibly to be updated)
   * list of replacements repls. This matching is in the sense of algebraic
   * substitutions. Matching starts with pat.op(factor) of the pattern because
   * the factors before this one have already been matched. The (possibly
@@ -1293,7 +1293,7 @@ ex mul::expand(unsigned options) const
 
 /** Member-wise expand the expairs representing this sequence.  This must be
  *  overridden from expairseq::expandchildren() and done iteratively in order
- *  to allow for early cancallations and thus safe memory.
+ *  to allow for early cancellations and thus safe memory.
  *
  *  @see mul::expand()
  *  @return pointer to epvector containing expanded representation or zero
index f22bf27b131ec1952b6f0f4192da37b842e51ba9..954529e63fe4d61f3901fde8c2c53407e79dccb4 100644 (file)
@@ -1912,7 +1912,7 @@ ex sqrfree(const ex &a, const lst &l)
        else
                result *= quo(tmp, result, x);
 
-       // Put in the reational overall factor again and return
+       // Put in the rational overall factor again and return
        return result * lcm.inverse();
 }
 
@@ -2212,7 +2212,7 @@ ex add::normal(exmap & repl, exmap & rev_lookup, int level) const
                        num_it++; den_it++;
                }
 
-               // Additiion of two fractions, taking advantage of the fact that
+               // Addition of two fractions, taking advantage of the fact that
                // the heuristic GCD algorithm computes the cofactors at no extra cost
                ex co_den1, co_den2;
                ex g = gcd(den, next_den, &co_den1, &co_den2, false);
@@ -2398,7 +2398,7 @@ ex ex::denom() const
                return e.op(1).subs(repl, subs_options::no_pattern);
 }
 
-/** Get numerator and denominator of an expression. If the expresison is not
+/** Get numerator and denominator of an expression. If the expression is not
  *  of the normal form "numerator/denominator", it is first converted to this
  *  form and then a list [numerator, denominator] is returned.
  *
index 4bb8ad280e246e6c7f24f8473d9de2ce936ea86f..0a6df50ad4cb4bb3e1ba842ec9a12c78270543f2 100644 (file)
@@ -50,7 +50,7 @@ typedef void (* digits_changed_callback)(long);
  *  than a dumber basic type since as a side-effect we let it change
  *  cl_default_float_format when it gets changed.  The only other
  *  meaningful thing to do with it is converting it to an unsigned,
- *  for temprary storing its value e.g.  The user must not create an
+ *  for temporarily storing its value e.g.  The user must not create an
  *  own working object of this class!  Since C++ forces us to make the
  *  class definition visible in order to use an object we put in a
  *  flag which prevents other objects of that class to be created. */
index c3fe14a132e14f98b79a24f19ec9ad5d0ef95d71..1a4f57dbfe142741fc6117044f3c778673eb3389 100644 (file)
@@ -913,7 +913,7 @@ ex power::expand(unsigned options) const
 namespace {  // anonymous namespace for power::expand_add() helpers
 
 /** Helper class to generate all bounded combinatorial partitions of an integer
- *  n with exactly m parts (including zero parts) in non-decreaing order.
+ *  n with exactly m parts (including zero parts) in non-decreasing order.
  */
 class partition_generator {
 private:
index dfffa647813a5038ace096a690d5691b18b5d70e..99eed8a20cbdbe896571e46cad519f303c97ff83 100644 (file)
@@ -1229,7 +1229,7 @@ ex integral::series(const relational & r, int order, unsigned options) const
        if (x.subs(r) != x)
                throw std::logic_error("Cannot series expand wrt dummy variable");
        
-       // Expanding integrant with r substituted taken in boundaries.
+       // Expanding integrand with r substituted taken in boundaries.
        ex fseries = f.series(r, order, options);
        epvector fexpansion;
        fexpansion.reserve(fseries.nops());
index 27bfc7ab3a083c31033757e886921aa60bf68436..cb3517168414a375c991ef448da71e70ce3ed283 100644 (file)
@@ -45,7 +45,7 @@ struct return_type_t
        /// to distinguish between non-commutative objects of different type.
        std::type_info const* tinfo; 
        /// to distinguish between non-commutative objects of the same type.
-       /// Think of gamma matrices with different represenation labels.
+       /// Think of gamma matrices with different representation labels.
        unsigned rl;
 
        /// Strict weak ordering (so one can put return_type_t's into
index 11c29b83f98feb111cd5d2460c6f36bdbd381f03..37063e6afec7ff0c3038d754ccba0cab387e549c 100644 (file)
@@ -322,7 +322,7 @@ relational::safe_bool relational::make_safe_bool(bool cond) const
        return cond? &safe_bool_helper::nonnull : 0;
 }
 
-/** Cast the relational into a boolean, mainly for evaluation within an
+/** Cast the relational into a Boolean, mainly for evaluation within an
  *  if-statement.  Note that (a<b) == false does not imply (a>=b) == true in
  *  the general symbolic case.  A false result means the comparison is either
  *  false or undecidable (except of course for !=, where true means either
index 6c7ebbae12bfe39ab8235d27a3e6145a9ea9ee42..6983cbfa02f0429da6e296121656c58339413c6d 100644 (file)
@@ -82,7 +82,7 @@ public:
 
        // non-virtual functions in this class
 private:
-       // For conversions to boolean, as would be used in an if conditional,
+       // For conversions to Boolean, as would be used in an if conditional,
        // implicit conversions from bool to int have a large number of
        // undesirable side effects.  The following safe_bool type enables
        // use of relational objects in conditionals without those side effects
index 2f396395ed031dd370fba5b1c59a1001780a1af4..6839e7562d2948bed4879298a55d861773e41eda 100644 (file)
@@ -167,7 +167,7 @@ inline ex antisymmetrize(const ex & e, const exvector & v)
        return antisymmetrize(e, v.begin(), v.end());
 }
 
-/** Symmetrize expression by cyclic permuation over a set of objects
+/** Symmetrize expression by cyclic permutation over a set of objects
  *  (symbols, indices). */
 ex symmetrize_cyclic(const ex & e, exvector::const_iterator first, exvector::const_iterator last);
 
index dd39d42ec2f5e412d1a54f8acbb11aca5caf9709..042f14cb93c8185e6f2c4a1ab1989d74b18eae26 100644 (file)
@@ -49,7 +49,7 @@ class dunno {};
 unsigned log2(unsigned n);
 
 /** Rotate bits of unsigned value by one bit to the left.
-  * This can be necesary if the user wants to define its own hashes. */
+  * This can be necessary if the user wants to define its own hashes. */
 inline unsigned rotate_left(unsigned n)
 {
        return (n & 0x80000000U) ? (n << 1 | 0x00000001U) : (n << 1);