[system] / trunk / pg / macros / contextPolynomialFactors.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/contextPolynomialFactors.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 6216 Revision 6217
1################################################################################ 1################################################################################
2# WeBWorK Online Homework Delivery System 2# WeBWorK Online Homework Delivery System
3# Copyright 2000-2010 The WeBWorK Project, http://openwebwork.sf.net/ 3# Copyright 2000-2010 The WeBWorK Project, http://openwebwork.sf.net/
4# $CVSHeader: pg/macros/contextLimitedPolynomial.pl,v 1.23 2009/06/25 23:28:44 gage Exp $ 4# $CVSHeader: pg/macros/contextPolynomialFactors.pl,v 1.1 2010/03/31 21:01:14 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.
104} 104}
105 105
106############################################## 106##############################################
107 107
108package PolynomialFactors::BOP::multiply; 108package PolynomialFactors::BOP::multiply;
109our @ISA = qw(PolynomialFactors::BOP LimitedPolynomial::BOP::multiply); 109our @ISA = qw(LimitedPolynomial::BOP::multiply);
110 110
111sub checkPolynomial { 111sub checkPolynomial {
112 my $self = shift; 112 my $self = shift;
113 my ($l,$r) = ($self->{lop},$self->{rop}); 113 my ($l,$r) = ($self->{lop},$self->{rop});
114 my $lOK = (LimitedPolynomial::isConstant($l) || $l->{isPower} || 114 my $lOK = (LimitedPolynomial::isConstant($l) || $l->{isPower} ||

Legend:
Removed from v.6216  
changed lines
  Added in v.6217

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9