From 8b2b7cb0099d93449de592e12c417b564d8118bf Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Mon, 9 Sep 2013 18:58:59 +0200 Subject: [PATCH] Minor corrections. --- README.txt | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/README.txt b/README.txt index e3d2001..31b4f98 100644 --- a/README.txt +++ b/README.txt @@ -1,6 +1,6 @@ This mapping class is a usable example of a "sophisticated" symbolic -mapping class in C++. Bascially it allows you to do things like : +mapping class in C++. It allows you to do things like : // X will be the "identity mapping" Mapping X = Mapping::X; @@ -8,21 +8,20 @@ mapping class in C++. Bascially it allows you to do things like : Mapping f; // Now contains some complex stuff f = sin(X * X - (X * 3.0) + 0.5); - // Display it + // Display its square cout << f*f << endl; - // fp will be the first derivative + // fp will be its first derivative Mapping fp = f.derivative(); - // fs the second derivative + // fs its second derivative Mapping fs = fp.derivative(); // Compute the second derivative at 5 cout << fs(5.0) << endl; -The best is to check the mappings.h to look at what functions and -operators are available. It will be pretty easy to add your own -operators. +The best is to check the file mappings.h for the list of available +functions and operators. It is pretty easy to add your own. -The memory management is done in such a way that spurious copies are -avoided and intermediate results will be deallocated correctly. So far +The memory management is done in such a way that unnecessary copies +are avoided and intermediate results are deallocated correctly. So far I never traced a memory leak, but feel free to report it if you find one. -- 2.20.1