]> www.ginac.de Git - ginac.git/blobdiff - ginac/power.h
* Some internal reorganization WRT flyweight handling and initialization,
[ginac.git] / ginac / power.h
index 06f9681ede124039f4286921c32f5bc3b6b27b57..97072e2a4d3ad50ec11768c7d4a891b69f4f9460 100644 (file)
@@ -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