X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fgenex.cpp;h=981e193c12898c8dd27c101c9206e724ec31e230;hp=b79ef7ebb794b2a092945ac462f91c502cf47e75;hb=8cffcdf13d817a47f217f1a1043317d95969e070;hpb=1602530f716ba1d425a0667b897182b99c374823 diff --git a/check/genex.cpp b/check/genex.cpp index b79ef7eb..981e193c 100644 --- a/check/genex.cpp +++ b/check/genex.cpp @@ -4,7 +4,7 @@ * input in the consistency checks. */ /* - * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2019 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);