X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;ds=sidebyside;f=check%2Fgenex.cpp;h=e12164ff482dbd61369a1d105f29bfc6e7d5b346;hb=38129d5d3880156f6f217f94855553bf4549a960;hp=c85965e7ac8d5cea2b58d1a09a010066369615ce;hpb=cca88b51436e4b654d16a4d60cd0d1c66fcf5dd6;p=ginac.git diff --git a/check/genex.cpp b/check/genex.cpp index c85965e7..e12164ff 100644 --- a/check/genex.cpp +++ b/check/genex.cpp @@ -4,7 +4,7 @@ * input in the consistency checks. */ /* - * GiNaC Copyright (C) 1999-2014 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2021 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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);