| 1 | ################################################################################ |
1 | ################################################################################ |
| 2 | # WeBWorK Online Homework Delivery System |
2 | # WeBWorK Online Homework Delivery System |
| 3 | # Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ |
3 | # Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/ |
| 4 | # $CVSHeader: pg/macros/contextLimitedPolynomial.pl,v 1.20 2007/11/06 15:49:03 dpvc Exp $ |
4 | # $CVSHeader: pg/macros/contextLimitedPolynomial.pl,v 1.21 2007/11/06 16:19:49 dpvc Exp $ |
| 5 | # |
5 | # |
| 6 | # This program is free software; you can redistribute it and/or modify it under |
6 | # This program is free software; you can redistribute it and/or modify it under |
| 7 | # the terms of either: (a) the GNU General Public License as published by the |
7 | # the terms of either: (a) the GNU General Public License as published by the |
| 8 | # Free Software Foundation; either version 2, or (at your option) any later |
8 | # Free Software Foundation; either version 2, or (at your option) any later |
| 9 | # version, or (b) the "Artistic License" which comes with this package. |
9 | # version, or (b) the "Artistic License" which comes with this package. |
| … | |
… | |
| 232 | $self->Error("Multiplication can only be used between coefficients and variables"); |
232 | $self->Error("Multiplication can only be used between coefficients and variables"); |
| 233 | } |
233 | } |
| 234 | |
234 | |
| 235 | sub checkStrict { |
235 | sub checkStrict { |
| 236 | my $self = shift; |
236 | my $self = shift; |
| 237 | $self->Error("You can only use '%s' between a coefficent and a variable in a polynomial",$self->{bop}); |
237 | $self->Error("You can only use '%s' between coefficents and variables in a polynomial",$self->{bop}); |
| 238 | } |
238 | } |
| 239 | |
239 | |
| 240 | ############################################## |
240 | ############################################## |
| 241 | |
241 | |
| 242 | package LimitedPolynomial::BOP::divide; |
242 | package LimitedPolynomial::BOP::divide; |