]> www.ginac.de Git - ginac.git/blobdiff - ginac/normal.cpp
- normal() works for relationals: it normalizes both sides
[ginac.git] / ginac / normal.cpp
index a4681122a662a0b03cb0e333f024aa360bc9d7b2..1940d1c0d17a0cd9639affcc3475e392def2632a 100644 (file)
@@ -1762,6 +1762,14 @@ ex pseries::normal(lst &sym_lst, lst &repl_lst, int level) const
 }
 
 
+/** Implementation of ex::normal() for relationals. It normalizes both sides.
+ *  @see ex::normal */
+ex relational::normal(lst &sym_lst, lst &repl_lst, int level) const
+{
+       return (new lst(relational(lh.normal(), rh.normal(), o), _ex1()))->setflag(status_flags::dynallocated);
+}
+
+
 /** Normalization of rational functions.
  *  This function converts an expression to its normal form
  *  "numerator/denominator", where numerator and denominator are (relatively