Permalink
Browse files

add copyright and LGPL to solver

  • Loading branch information...
bvds committed Jan 8, 2009
1 parent 18dc3e2 commit f330eb2cc5e020f965b4f24152b5621cbdeb003c
Showing with 2,379 additions and 208 deletions.
  1. +0 −128 Algebra/Algebra.dsw
  2. +17 −1 Algebra/src/Solver.cpp
  3. +19 −3 Algebra/src/Solver.h
  4. +17 −0 Algebra/src/backdoor.cpp
  5. +18 −0 Algebra/src/binopfunctions.h
  6. +16 −0 Algebra/src/checkeqs.cpp
  7. +16 −0 Algebra/src/checksol.cpp
  8. +16 −0 Algebra/src/cleanup.cpp
  9. +16 −0 Algebra/src/coldriver.cpp
  10. +18 −0 Algebra/src/coldriver.h
  11. +16 −0 Algebra/src/copyexpr.cpp
  12. +16 −0 Algebra/src/dbg.h
  13. +16 −0 Algebra/src/decl.h
  14. +16 −0 Algebra/src/desperate.cpp
  15. +16 −0 Algebra/src/despquad.cpp
  16. +18 −0 Algebra/src/despquadb.cpp
  17. +18 −0 Algebra/src/dimchkeqf.cpp
  18. +18 −0 Algebra/src/dimenchk.cpp
  19. +16 −0 Algebra/src/dimens.cpp
  20. +16 −0 Algebra/src/dimens.h
  21. +16 −0 Algebra/src/distfrac.cpp
  22. +16 −0 Algebra/src/dofactor.cpp
  23. +16 −0 Algebra/src/donlsolv.cpp
  24. +16 −0 Algebra/src/dopurelin.cpp
  25. +16 −0 Algebra/src/dotrig.cpp
  26. +16 −0 Algebra/src/eqnokay.cpp
  27. +16 −0 Algebra/src/eqnumsimp.cpp
  28. +16 −0 Algebra/src/equaleqs.cpp
  29. +16 −0 Algebra/src/expr.cpp
  30. +16 −0 Algebra/src/expr.h
  31. +16 −0 Algebra/src/exprp.cpp
  32. +16 −0 Algebra/src/extoper.h
  33. +17 −0 Algebra/src/extstruct.h
  34. +16 −0 Algebra/src/factorout.cpp
  35. +16 −0 Algebra/src/fixupforpls.cpp
  36. +16 −0 Algebra/src/flatten.cpp
  37. +16 −0 Algebra/src/getaline.cpp
  38. +16 −0 Algebra/src/getall.cpp
  39. +16 −0 Algebra/src/getallfile.cpp
  40. +16 −0 Algebra/src/getaneqwu.cpp
  41. +16 −0 Algebra/src/getavar.cpp
  42. +16 −0 Algebra/src/indyset.cpp
  43. +16 −0 Algebra/src/indyset.h
  44. +16 −0 Algebra/src/indysgg.cpp
  45. +17 −1 Algebra/src/indysgg.h
  46. +16 −0 Algebra/src/indysgg2.cpp
  47. +16 −0 Algebra/src/indysgg3.cpp
  48. +16 −0 Algebra/src/interact.cpp
  49. +16 −0 Algebra/src/ispos.cpp
  50. +16 −0 Algebra/src/justonev.cpp
  51. +16 −0 Algebra/src/justsolve.cpp
  52. +18 −0 Algebra/src/justsolve.h
  53. +17 −0 Algebra/src/linnfilt.h
  54. +0 −70 Algebra/src/linwood.h
  55. +16 −0 Algebra/src/lookslikeint.cpp
  56. +17 −1 Algebra/src/lrdcstd.h
  57. +16 −0 Algebra/src/mconst.h
  58. +16 −0 Algebra/src/moreexpr.cpp
  59. +16 −0 Algebra/src/multsort.cpp
  60. +16 −0 Algebra/src/newindy.cpp
  61. +16 −0 Algebra/src/nlsolvov.cpp
  62. +16 −0 Algebra/src/normexpr.cpp
  63. +16 −0 Algebra/src/numfactorsof.cpp
  64. +16 −0 Algebra/src/numunknowns.cpp
  65. +16 −0 Algebra/src/ordinvars.cpp
  66. +16 −0 Algebra/src/ordunknowns.cpp
  67. +16 −0 Algebra/src/parse.cpp
  68. +16 −0 Algebra/src/parseeqwunits.cpp
  69. +16 −0 Algebra/src/parseunit.cpp
  70. +20 −0 Algebra/src/pconsts.h
  71. +16 −0 Algebra/src/physconsts.cpp
  72. +16 −0 Algebra/src/physvar.cpp
  73. +16 −0 Algebra/src/plussort.cpp
  74. +16 −0 Algebra/src/polysolve.cpp
  75. +16 −0 Algebra/src/powonev.cpp
  76. +19 −0 Algebra/src/prefixes.h
  77. +16 −0 Algebra/src/purelin.cpp
  78. +16 −0 Algebra/src/qsrtexpr.cpp
  79. +16 −0 Algebra/src/rationalize.cpp
  80. +16 −0 Algebra/src/recassign.cpp
  81. +16 −0 Algebra/src/slvlinonev.cpp
  82. +16 −0 Algebra/src/solveknownvar.cpp
  83. +16 −0 Algebra/src/solvetool.cpp
  84. +16 −0 Algebra/src/solvetrig.cpp
  85. +16 −0 Algebra/src/solvetrigb.cpp
  86. +18 −2 Algebra/src/standard.h
  87. +16 −0 Algebra/src/subexpin.cpp
  88. +16 −0 Algebra/src/substin.cpp
  89. +16 −0 Algebra/src/treechk.cpp
  90. +16 −0 Algebra/src/trigsimp.cpp
  91. +16 −0 Algebra/src/unitabr.cpp
  92. +16 −0 Algebra/src/unitabr.h
  93. +20 −1 Algebra/src/units.h
  94. +18 −1 Algebra/src/utils.cpp
  95. +16 −0 Algebra/src/valander.cpp
  96. +16 −0 Algebra/src/valander.h
  97. +674 −0 COPYING
  98. +165 −0 COPYING.LESSER
View
@@ -1,128 +0,0 @@
-Microsoft Developer Studio Workspace File, Format Version 6.00
-# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
-
-###############################################################################
-
-Project: "DriveDLL"=..\..\Code\VCPP\newJoel\Algebra\DriveDLL\DriveDLL.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
-}}}
-
-Package=<4>
-{{{
- Begin Project Dependency
- Project_Dep_Name Solver
- End Project Dependency
-}}}
-
-###############################################################################
-
-Project: "Solver"=.\SOLVER\Solver.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/Solver", RYLAAAAA
- .\solver
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "checksol"=.\checksol\checksol.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/checksol", ESLAAAAA
- .\checksol
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "colander"=.\Colander\Colander.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/Colander", GSLAAAAA
- .\colander
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "colcheck"=.\colcheck\colcheck.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/colcheck", HYLAAAAA
- .\colcheck
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "indy"=.\indy\indy.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/indy", ISLAAAAA
- .\indy
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Project: "list2"=.\List2\List2.dsp - Package Owner=<4>
-
-Package=<5>
-{{{
- begin source code control
- "$/Andes2/Algebra/List2", KSLAAAAA
- .\list2
- end source code control
-}}}
-
-Package=<4>
-{{{
-}}}
-
-###############################################################################
-
-Global:
-
-Package=<5>
-{{{
-}}}
-
-Package=<3>
-{{{
-}}}
-
-###############################################################################
-
View
@@ -1,10 +1,26 @@
//////////////////////////////////////////////////////////////////////////////
// solver.cpp -- solver code
-// Copyright (C) 2001 by <Linwood H. Taylor's Employer> - All Rights Reserved.
// Author(s): Linwood H. Taylor <lht@lzri.com>
// Modified:
// 31 January 2001 - lht -- created
// 19 February 2001 - lht -- modified for additional functionality
+// Modifications by Brett van de Sande, 2005-2008
+// Copyright 2009 by Kurt Vanlehn and Brett van de Sande
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
//////////////////////////////////////////////////////////////////////////////
#include "Solver.h"
#include "coldriver.h"
View
@@ -1,14 +1,30 @@
#ifndef _H_SOLVER_H_
#define _H_SOLVER_H_
-/////////////////////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
// solver.h -- includes/macros/prototypes/defines for using the solve dll
-// Copyright (C) 2001 by <Linwood H. Taylor's Employer> - All Rights Reserved.
// Author(s): Linwood H. Taylor <lht@lzri.com>
// Modified:
// 31 January 2001 - lht -- created
// 19 February 2001 - lht -- modified for additional functionality
// 26 April 2001 - JaS -- replaced isIndependent and Expand functions
-/////////////////////////////////////////////////////////////////////////////////////////////////
+// Modifications by Brett van de Sande, 2005-2008
+// Copyright 2009 by Kurt Vanlehn and Brett van de Sande
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
+////////////////////////////////////////////////////////////////////////////////
#ifdef _WINDOWS
#ifdef SOLVER_EXPORTS
View
@@ -1,4 +1,21 @@
// backdoor let things be tested by entering fake equation in slot
+// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// numbered 11 on workbench
@@ -1,3 +1,21 @@
+// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
+
#ifndef BINOPFUNCTIONS_INCLUDED
#define BINOPFUNCTIONS_INCLUDED
#include "expr.h"
View
@@ -1,5 +1,21 @@
// new checkeqs.cpp contains checkeqs (with pieces pulled out as sep functs
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// this version modified 4/29 for recassign and dopurelin outputting
// on soleqs, a vector<binopexp *>*, rather than to a file.
/************************************************************************
View
@@ -1,5 +1,21 @@
// checksol.cpp
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// version with choice of relerr. Call with RELERR for problem solution
// and checking, and with default relerr (=0.01?) for student equations.
#include <math.h>
View
@@ -1,5 +1,21 @@
// cleanup cleans up an n_op
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// Note: this should replace part of flatten, and might be used instead
// of flatten when only this is needed
View
@@ -1,5 +1,21 @@
// coldriver.cpp
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// solve equations for problem in Andes2,
// from files generated by Collin, 1/29/01
View
@@ -1,3 +1,21 @@
+// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
+
#ifndef COLDRIVER_INCLUDED
#define COLDRIVER_INCLUDED
char* solveTheProblem();
View
@@ -1,5 +1,21 @@
// copyexpr.cpp should really be a constructor, but don't know how.
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
// modified 3/15/01 to include dimens
/************************************************************************
* expr * p = copyexpr(expr * old) *
View
@@ -1,5 +1,21 @@
// dbg.h defines for debug printing control
// Copyright (C) 2001 by Joel A. Shapiro -- All Rights Reserved
+// Modifications by Brett van de Sande, 2005-2008
+//
+// This file is part of the Andes Solver.
+//
+// The Andes Solver is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// The Andes Solver is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with the Andes Solver. If not, see <http://www.gnu.org/licenses/>.
#include "standard.h"
#ifdef WITHDBG
Oops, something went wrong.

0 comments on commit f330eb2

Please sign in to comment.