]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.h
- (l)degree(s), coeff(s, n) and collect(s) were extended to accept expressions
[ginac.git] / ginac / power.h
index 06f9681ede124039f4286921c32f5bc3b6b27b57..12ebf6a2aa896bedcd271c7ac865e1df977a4502 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to GiNaC's symbolic exponentiation (basis^exponent). */
 
 /*
- *  GiNaC Copyright (C) 1999-2001 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2002 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
@@ -113,7 +113,11 @@ inline ex pow(const T1 & b, const T2 & e)
 }
 
 /** Square root expression.  Returns a power-object with exponent 1/2. */
-ex sqrt(const ex & a);
+inline ex sqrt(const ex & a)
+{
+       extern const ex _ex1_2;
+       return power(a,_ex1_2);
+}
 
 } // namespace GiNaC